de.printStackTrace();
fail( de.getMessage() );
}
// Check the decoded CompareRequest PDU
CompareRequest compareRequest = container.getMessage();
assertEquals( 1, compareRequest.getMessageId() );
assertEquals( "cn=testModify,ou=users,ou=system", compareRequest.getName().toString() );
assertEquals( "test", compareRequest.getAttributeId() );
assertEquals( "value", compareRequest.getAssertionValue().toString() );
// Check the encoding
try
{
ByteBuffer bb = encoder.encodeMessage( compareRequest );