de.printStackTrace();
fail( de.getMessage() );
}
// Check the decoded ModifyDNResponse PDU
ModifyDnResponse modifyDnResponse = ldapMessageContainer.getMessage();
assertEquals( 1, modifyDnResponse.getMessageId() );
assertEquals( ResultCodeEnum.SUCCESS, modifyDnResponse.getLdapResult().getResultCode() );
assertEquals( "", modifyDnResponse.getLdapResult().getMatchedDn().getName() );
assertEquals( "", modifyDnResponse.getLdapResult().getErrorMessage() );
// Check the encoding
try
{
ByteBuffer bb = encoder.encodeMessage( modifyDnResponse );