TomcatUserManager extends BaseTomcatManager implements UserManager,
                                                                    ContextualManager { @Override public void changePassword(String username, String newPassword) throws SecurityManagementException { checkNotNull("username", username); MemoryUserDatabase userDatabase = getDatabase(); try { org.apache.catalina.User user = getUser(userDatabase, username); user.setPassword(newPassword); saveDatabase(userDatabase); } finally { closeDatabase(userDatabase); } } TomcatUserManager();  TomcatUserManager(final Map<String, String> gitPrefs);  TomcatUserManager(final ConfigProperties gitPrefs); @Override void initialize(final UserSystemManager userSystemManager); @Override void destroy(); @Override SearchResponse<User> search(SearchRequest request); @Override User get(String identifier); @Override List<User> getAll(); @Override User create(User entity); @Override User update(User entity); @Override void delete(String... identifiers); @Override UserManagerSettings getSettings(); @Override void assignGroups(String username,
                             Collection<String> groups); @Override void assignRoles(String username,
                            Collection<String> roles); @Override void changePassword(String username,
                               String newPassword);  }
@Test public void testChangePassword() { usersManager.changePassword("user1", "newUser1Password"); MemoryUserDatabase database = usersManager.getDatabase(); org.apache.catalina.User catalinaUser = usersManager.getUser(database, "user1"); assertEquals("newUser1Password", catalinaUser.getPassword()); }