Object referral = referrals.get( 0 );
try
{
assertEquals( new LdapURL( "ldap://www.apache.org/" ).toString(), referral.toString() );
}
catch ( NamingException e )
{
fail();
}
Object referral2 = referrals.get( 1 );
try
{
assertEquals( new LdapURL( "ldap://www.apple.com/" ).toString(), referral2.toString() );
}
catch ( NamingException e )
{
fail();
}