TomcatUserManager extends BaseTomcatManager implements UserManager,
                                                                    ContextualManager { @Override public List<User> getAll() throws SecurityManagementException { MemoryUserDatabase userDatabase = getDatabase(); try { Iterator<org.apache.catalina.User> userIterator = userDatabase.getUsers(); List<User> users = new ArrayList<>(); if (userIterator != null) { while (userIterator.hasNext()) { org.apache.catalina.User user = userIterator.next(); Iterator<Role> groups = user.getRoles(); users.add(createUser(user, groups)); } } return users; } 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 testGetAllUsers() { List<User> users = usersManager.getAll(); assertEquals(4, users.size()); }