{
de.printStackTrace();
fail( de.getMessage() );
}
SearchResultDone searchResultDone = ldapMessageContainer.getMessage();
assertEquals( 1, searchResultDone.getMessageId() );
assertEquals( ResultCodeEnum.SUCCESS, searchResultDone.getLdapResult().getResultCode() );
assertEquals( "", searchResultDone.getLdapResult().getMatchedDn().getName() );
assertEquals( "", searchResultDone.getLdapResult().getDiagnosticMessage() );
// Check the Control
Map<String, Control> controls = searchResultDone.getControls();
assertEquals( 1, controls.size() );
@SuppressWarnings("unchecked")
CodecControl<Control> control = ( org.apache.directory.api.ldap.codec.api.CodecControl<Control> ) controls