### Question:
UserDatabaseModelJpa implements UserDatabaseModel, Serializable { @Transactional public boolean addPasswordResetToken(PasswordResetToken token) { PasswordResetTokenEntity tokenEntity = new PasswordResetTokenEntity(token); tokenEntity.setValid(true); passwordResetTokenEntityDao.add(tokenEntity); return true; }  @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 testAddPasswordResetToken() throws SQLException, Exception { fillDatabase("userDatabaseModelHbnTest/beforeAddPasswordResetToken.xml"); PasswordResetToken token = new PasswordResetToken(1, "ea587b759f423f0bfadfe7aeba0ee3fe", new Date()); boolean result = databaseModel.addPasswordResetToken(token); assertEquals(true, result); IDataSet expectedDataSet = loadFlatXmlDataSet("userDatabaseModelHbnTest/afterAddPasswordResetToken.xml"); assertTableContent(expectedDataSet, "um_password_reset_token", new String[] { "date_time", "id" }); }