final String USERNAME = "testChangePassword";
final String PASSWORD1 = "test";
final String PASSWORD2 = "changed";
final String HASH1 = hashPassword(PASSWORD1);
final String HASH2 = hashPassword(PASSWORD2);
<BUG>User user = userService.create(EMAIL, USERNAME, PASSWORD1, null, null, null, null, null, null, null, null, "", "");
</BUG>
assertNotNull("Unable to create user", user);
assertEquals("Password not correctly encoded.", user.getPassword(), HASH1);
user = userService.changePassword(user.getId(), HASH1, PASSWORD2);

final String USERNAME = "testChangePassword";
final String PASSWORD1 = "test";
final String PASSWORD2 = "changed";
final String HASH1 = hashPassword(PASSWORD1);
final String HASH2 = hashPassword(PASSWORD2);
User user = userService.create(EMAIL, USERNAME, PASSWORD1, null, null, null, null, null, null, null, null, "http://europeana.eu", null);
assertNotNull("Unable to create user", user);
assertEquals("Password not correctly encoded.", user.getPassword(), HASH1);
user = userService.changePassword(user.getId(), HASH1, PASSWORD2);
