use of org.apache.directory.api.ldap.extras.extended.storedProcedure.StoredProcedureRequest in project directory-ldap-api by apache.
the class StandaloneLdapCodecServiceTest method testLoadingExtendedOperation.
/**
* Test an extended operation.
*/
@Test
public void testLoadingExtendedOperation() throws Exception {
LdapApiService codec = LdapApiServiceFactory.getSingleton();
StoredProcedureRequest req = new StoredProcedureRequestImpl();
req.setLanguage("Java");
req.setProcedure(Strings.getBytesUtf8("bogusProc"));
assertNotNull(req);
assertNotNull(codec);
StoredProcedureRequest decorator = (StoredProcedureRequest) codec.decorate(req);
assertNotNull(decorator);
}
Aggregations