assert new_user.getId() != 0;
Subject login_new_user = subjectManager.loginUnauthenticated(new_user.getName());
assert login_new_user.equals(new_user);
new_user = login_new_user; // login_new_user was given a new session ID
subjectManager.changePassword(new_user, new_user.getName(), "my-new-password");
subjectManager.changePassword(rhqadmin, new_user.getName(), "my-new-password"); // see that rhqadmin can change it too
getTransactionManager().commit();
getTransactionManager().begin();