TomcatGroupManager extends BaseTomcatManager implements GroupManager,
                                                                     ContextualManager { protected CapabilityStatus getCapabilityStatus(Capability capability) { if (capability != null) { switch (capability) { case CAN_SEARCH_GROUPS: case CAN_ADD_GROUP: case CAN_READ_GROUP: case CAN_DELETE_GROUP: return CapabilityStatus.ENABLED; } } return CapabilityStatus.UNSUPPORTED; } TomcatGroupManager();  TomcatGroupManager(final Map<String, String> gitPrefs);  TomcatGroupManager(final ConfigProperties gitPrefs); @Override void initialize(UserSystemManager userSystemManager); @Override void destroy(); @Override SearchResponse<Group> search(SearchRequest request); @Override Group get(String identifier); @Override List<Group> getAll(); @Override Group create(Group entity); @Override Group update(Group entity); @Override void delete(String... identifiers); @Override GroupManagerSettings getSettings(); @Override void assignUsers(String name,
                            Collection<String> users);  }
@Test public void testCapabilities() { assertEquals(groupsManager.getCapabilityStatus(Capability.CAN_SEARCH_GROUPS), CapabilityStatus.ENABLED); assertEquals(groupsManager.getCapabilityStatus(Capability.CAN_READ_GROUP), CapabilityStatus.ENABLED); assertEquals(groupsManager.getCapabilityStatus(Capability.CAN_ADD_GROUP), CapabilityStatus.ENABLED); assertEquals(groupsManager.getCapabilityStatus(Capability.CAN_DELETE_GROUP), CapabilityStatus.ENABLED); assertEquals(groupsManager.getCapabilityStatus(Capability.CAN_UPDATE_GROUP), CapabilityStatus.UNSUPPORTED); }