constraints.setClientControls( new LDAPControl( LDAPControl.MANAGEDSAIT, true, Strings.EMPTY_BYTES ) );
constraints.setServerControls( new LDAPControl( LDAPControl.MANAGEDSAIT, true, Strings.EMPTY_BYTES ) );
conn.setConstraints( constraints );
// ModifyDN success
conn.rename( "uid=akarasuluref,ou=users,ou=system", "uid=ref", true, constraints );
LDAPEntry entry = conn.read( "uid=ref,ou=users,ou=system", ( LDAPSearchConstraints ) constraints );
assertNotNull( entry );
assertEquals( "uid=ref,ou=users,ou=system", entry.getDN() );
conn.disconnect();