### Question:
UserDatabaseModelJpa implements UserDatabaseModel, Serializable { @Transactional public boolean setUserPassword(int userId, UserPassword password) { return userEntityDao.setUserPassword(userId, password); }  @Transactional boolean addPasswordResetToken(PasswordResetToken token); @Transactional int addUser(User newUser); @Transactional boolean cancelAllPasswordResetTokens(int userId); @Transactional boolean confirmUserRegistration(String email); @Transactional boolean deleteUser(int userId); @Transactional int getRegisteredUserCount(Date since); PasswordResetToken getNewestPasswordResetToken(String email); User getUserByEmail(String email); User getUserByName(String name); User getUserBySocialAccount(SocialAccountDetails details); int getUserIdByEmail(String email); UserPassword getUserPassword(int userId); boolean isEmailRegistered(String email); boolean isUserNameRegistered(String name); @Transactional boolean makeLogInRecord(int userId, boolean logInSuccessfull, String usersIp); @Transactional int saveUserWithSocialAccount(User user, SocialAccountDetails details); @Transactional boolean setUserPassword(int userId, UserPassword password);  }### Answer:
@Test public void testSetUserPassword() throws DatabaseUnitException, SQLException, Exception { fillDatabase("userDatabaseModelHbnTest/beforeSetUserPassword.xml"); UserPassword password = new UserPassword("362ec39d4e116faba4f8727a5e8386cfc796cfe0d9f94ac048cf90ac0b33e571", "cda7fa19837cab6fc8fcefec2b8a4e2cfddd29fcbafffba420e262a41ac2a17f"); boolean result = databaseModel.setUserPassword(5, password); assertEquals(false, result); result = databaseModel.setUserPassword(1, password); assertEquals(true, result); IDataSet expectedDataSet = loadFlatXmlDataSet("userDatabaseModelHbnTest/afterSetUserPassword.xml"); assertTableContent(expectedDataSet, "um_user", new String[] {}); }