de.printStackTrace();
fail( de.getMessage() );
}
// Check the decoded AddResponse
AddResponse addResponse = container.getMessage();
assertEquals( 1, addResponse.getMessageId() );
assertEquals( ResultCodeEnum.REFERRAL, addResponse.getLdapResult().getResultCode() );
assertEquals( "", addResponse.getLdapResult().getMatchedDn().getName() );
assertEquals( "", addResponse.getLdapResult().getDiagnosticMessage() );
Referral referral = addResponse.getLdapResult().getReferral();
assertNotNull( referral );
assertEquals( 1, referral.getLdapUrls().size() );
Collection<String> ldapUrls = referral.getLdapUrls();