assertEquals( 2, referrals.size() );
try
{
assertTrue( referrals.contains( new LdapUrl( "ldap://www.apache.org/" ).toString() ) );
}
catch ( LdapURLEncodingException e )
{
fail();
}
try
{
assertTrue( referrals.contains( new LdapUrl( "ldap://www.apple.com/" ).toString() ) );
}
catch ( LdapURLEncodingException e )
{
fail();
}