@Test void testRemoveUser() { TestWebApplicationRequest request = new TestWebApplicationRequest(); request.setUserPrincipal(new UserPrincipal("username")); DefaultSecurityManager securityManager = new DefaultSecurityManager(); securityManager.addUser("username", "password", new String[]{"role1", "role2"}); assertTrue(securityManager.isUserInRole(request, "role1")); securityManager.removeUser("username"); assertFalse(securityManager.isUserInRole(request, "role1")); }
public void removeUser(String username) { logins.remove(username); userRoles.remove(username); }
DefaultSecurityManager implements SecurityManager { public void removeUser(String username) { logins.remove(username); userRoles.remove(username); } }
DefaultSecurityManager implements SecurityManager { public void removeUser(String username) { logins.remove(username); userRoles.remove(username); }  }
DefaultSecurityManager implements SecurityManager { public void removeUser(String username) { logins.remove(username); userRoles.remove(username); }  void addUser(String username, String password, String... roles); void addUserRole(String username, String... roles); @Override boolean authenticate(
            HttpServletRequest request, HttpServletResponse response); @Override void declareRoles(String[] roles); @Override Set<String> getRoles(); @Override boolean getDenyUncoveredHttpMethods(); @Override WebApplication getWebApplication(); @Override boolean isUserInRole(HttpServletRequest request, String role); @Override void login(HttpServletRequest request, String username, String password); @Override void logout(HttpServletRequest request, HttpServletResponse response); void removeUser(String username); @Override void setDenyUncoveredHttpMethods(boolean denyUncoveredHttpMethods); @Override void setWebApplication(WebApplication webApplication); }
DefaultSecurityManager implements SecurityManager { public void removeUser(String username) { logins.remove(username); userRoles.remove(username); }  void addUser(String username, String password, String... roles); void addUserRole(String username, String... roles); @Override boolean authenticate(
            HttpServletRequest request, HttpServletResponse response); @Override void declareRoles(String[] roles); @Override Set<String> getRoles(); @Override boolean getDenyUncoveredHttpMethods(); @Override WebApplication getWebApplication(); @Override boolean isUserInRole(HttpServletRequest request, String role); @Override void login(HttpServletRequest request, String username, String password); @Override void logout(HttpServletRequest request, HttpServletResponse response); void removeUser(String username); @Override void setDenyUncoveredHttpMethods(boolean denyUncoveredHttpMethods); @Override void setWebApplication(WebApplication webApplication);  }