assertEquals(LDAPPasswordModify.mainPasswordModify(args, false, null, null),
0);
// Perform an internal bind to verify the password was actually changed.
conn = new InternalClientConnection(new AuthenticationInfo());
BindOperation bindOperation =
conn.processSimpleBind(userEntry.getDN(),
ByteString.valueOf("newPassword"));
assertEquals(bindOperation.getResultCode(), ResultCode.SUCCESS);
}