"ou=UnderReferral,ou=Computers,uid=akarasuluref,ou=users,ou=system",
"objectClass", "organizationalUnit",
"ou", "UnderReferral" );
addRequest.setEntry( entry );
AddResponse addResponse = conn.add( addRequest );
assertEquals( ResultCodeEnum.REFERRAL, addResponse.getLdapResult().getResultCode() );
assertTrue( addResponse.getLdapResult().getReferral().getLdapUrls()
.contains( "ldap://localhost:10389/ou=UnderReferral,ou=Computers,uid=akarasulu,ou=users,ou=system" ) );
assertTrue( addResponse.getLdapResult().getReferral().getLdapUrls()
.contains( "ldap://foo:10389/ou=UnderReferral,ou=Computers,uid=akarasulu,ou=users,ou=system" ) );
assertTrue( addResponse.getLdapResult().getReferral().getLdapUrls()
.contains( "ldap://bar:10389/ou=UnderReferral,ou=Computers,uid=akarasulu,ou=users,ou=system" ) );
conn.close();
}