// }
} );
String decodedPdu = Strings.dumpBytes( stream.array() );
stream.flip();
GracefulDisconnectContainer container = new GracefulDisconnectContainer();
try
{
decoder.decode( stream, container );
}
catch ( DecoderException de )
{
de.printStackTrace();
fail( de.getMessage() );
}
GracefulDisconnectResponseDecorator gracefulDisconnect = container.getGracefulDisconnectResponse();
assertEquals( 1, gracefulDisconnect.getTimeOffline() );
assertEquals( 1, gracefulDisconnect.getDelay() );
assertEquals( 2, gracefulDisconnect.getReplicatedContexts().getLdapUrls().size() );
Iterator<String> ldapUrls = gracefulDisconnect.getReplicatedContexts().getLdapUrls().iterator();