de.printStackTrace();
fail( de.getMessage() );
}
// Check the decoded DelResponse PDU
DeleteResponse delResponse = container.getMessage();
assertEquals( 1, delResponse.getMessageId() );
assertEquals( ResultCodeEnum.ALIAS_PROBLEM, delResponse.getLdapResult().getResultCode() );
assertEquals( "uid=akarasulu,dc=example,dc=com", delResponse.getLdapResult().getMatchedDn().getName() );
assertEquals( "", delResponse.getLdapResult().getDiagnosticMessage() );
// Check the Control
Map<String, Control> controls = delResponse.getControls();
assertEquals( 1, controls.size() );
@SuppressWarnings("unchecked")
CodecControl<Control> control = ( org.apache.directory.api.ldap.codec.api.CodecControl<Control> ) controls