// after granting user-mgt privilege changing the pw must succeed.
modify("/", PrivilegeConstants.REP_USER_MANAGEMENT, true);
UserManager testUserMgr = getUserManager(testSession);
User user = (User) testUserMgr.getAuthorizable(userId);
user.changePassword("pw2");
testSession.save();
}
@Test
public void testDisableUserWithoutPermission() throws Exception {