LdapContext ctx = getWiredContextThrowOnRefferal( getLdapServer() );
// ModifyDN referrals failure
try
{
ctx.rename( "uid=akarasuluref,ou=users,ou=system", "uid=ref,ou=users,ou=system" );
fail( "Should never get here due to ModifyDN failure on ReferralException" );
}
catch ( ReferralException e )
{
// seems JNDI only returns the first referral URL and not all so we test for it