@Test
public void testModifyOnAdminByAdmin() throws Exception
{
LdapConnection connection = getAdminConnection();
DN adminDN = new DN( "uid=admin,ou=system" );
ModifyRequest req = new ModifyRequest( adminDN );
String newPwd = "replaced";
req.replace( SchemaConstants.USER_PASSWORD_AT, newPwd );
connection.modify( req );
connection.close();
connection = getConnectionAs( adminDN, newPwd );
Entry entry = ( ( SearchResultEntry ) connection.lookup( adminDN.getName() ) ).getEntry();