de.printStackTrace();
fail( de.getMessage() );
}
// Check the decoded CompareResponse PDU
CompareResponse compareResponse = container.getMessage();
assertEquals( 1, compareResponse.getMessageId() );
assertEquals( ResultCodeEnum.SUCCESS, compareResponse.getLdapResult().getResultCode() );
assertEquals( "", compareResponse.getLdapResult().getMatchedDn().getName() );
assertEquals( "", compareResponse.getLdapResult().getDiagnosticMessage() );
// Check the Control
Map<String, Control> controls = compareResponse.getControls();
assertEquals( 1, controls.size() );
@SuppressWarnings("unchecked")
CodecControl<Control> control = (org.apache.directory.shared.ldap.codec.api.CodecControl<Control> ) controls.get( "2.16.840.1.113730.3.4.2" );