use of org.apache.directory.api.ldap.extras.intermediate.syncrepl.SyncInfoValueImpl in project directory-ldap-api by apache.
the class StandaloneLdapCodecServiceTest method testLoadingIntermediateResponse.
/**
* Test an intermediate response.
*/
@Test
public void testLoadingIntermediateResponse() throws Exception {
LdapApiService codec = LdapApiServiceFactory.getSingleton();
SyncInfoValue syncInfoValue = new SyncInfoValueImpl();
syncInfoValue.setCookie(Strings.getBytesUtf8("test"));
assertNotNull(syncInfoValue);
assertNotNull(codec);
Object o = codec.decorate(syncInfoValue);
SyncInfoValue decorator = (SyncInfoValue) codec.decorate(syncInfoValue);
assertNotNull(decorator);
}
Aggregations