*/
@Test
public final void testChangePassword() throws Exception {
LOGGER.info("testChangePassword startet");
User user = UserServiceExampleData.getUser1();
try {
usrSrv.createUser(user);
user = usrSrv.logInUser(user.getUid(), user.getPassword());
assertNotNull("User is null.", user);
usrSrv.changePassword(user, "pwd");
user = usrSrv.logInUser(user.getUid(), user.getPassword());
assertNotNull("User is null.", user);
assertEquals("Wrong password.", "pwd", user.getPassword());
} catch (Exception e) {
throw e;
} finally {
usrSrv.dropUser(user);
}