### Question:
StandaloneCommandLineInterface { public boolean resetPassword(String userIdWithoutDomain, String newPassword) throws IDMStoreException { Optional<User> optUser = getSingleUser(userIdWithoutDomain); if (!optUser.isPresent()) { return false; } else { User user = optUser.get(); user.setPassword(newPassword); identityStore.updateUser(user); return true; } } StandaloneCommandLineInterface(File directoryWithDatabaseFile); List<String> getAllUserNames(); boolean resetPassword(String userIdWithoutDomain, String newPassword); boolean checkUserPassword(String userIdWithoutDomain, String password); void createNewUser(String userName, String password, boolean isAdmin); boolean deleteUser(String userIdWithoutDomain);  }### Answer:
@Test public void testSetPasswordOnNonExistingUser() throws Exception { assertThat(cli.resetPassword("noSuchUID", "...")).isFalse(); }