de.printStackTrace();
fail( de.getMessage() );
}
// Check the decoded AddResponse
AddResponse addResponse = container.getMessage();
assertEquals( 1, addResponse.getMessageId() );
assertEquals( ResultCodeEnum.SUCCESS, addResponse.getLdapResult().getResultCode() );
assertEquals( "", addResponse.getLdapResult().getMatchedDn().getName() );
assertEquals( "", addResponse.getLdapResult().getErrorMessage() );
try
{
ByteBuffer bb = encoder.encodeMessage( addResponse );