### Question:
UserDatabaseModelJpa implements UserDatabaseModel, Serializable { public UserPassword getUserPassword(int userId) { return userEntityDao.getUserPassword(userId); }  @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 testGetUserPassword() throws DatabaseUnitException, SQLException, Exception { fillDatabase("userDatabaseModelHbnTest/userList.xml"); UserPassword result = databaseModel.getUserPassword(10); assertEquals(null, result); result = databaseModel.getUserPassword(3); assertEquals(null, result); result = databaseModel.getUserPassword(1); assertNotNull(result); assertEquals("7342f7c8d3d1d68ee7c03ab72b3deac613b837a4c4c07042cbeca974ea7ba218", result.getHash()); assertEquals("7886788cb39bf33c856ef18206a81ce4b498dc5a1a4199abc0cb0fb686eab008", result.getSalt()); }