// 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.disable("disabled!");
testSession.save();
}
@Test
public void testRemoveUserWithoutPermission() throws Exception {