String referral = ( String ) re.getReferralInfo();
assertEquals( "ldap://localhost:" + getLdapServer().getPort() + "/c=usa,ou=system??base", referral );
}
( ( LdapContext ) ctx ).setRequestControls( new javax.naming.ldap.Control[]
{ new ManageReferralControl() } );
// Now let's move the entry
ctx.rename( "c=america,ou=Countries,ou=system", "c=USA,ou=Countries,ou=system" );
controls.setSearchScope( SearchControls.OBJECT_SCOPE );