TomcatGroupManager extends BaseTomcatManager implements GroupManager,
                                                                     ContextualManager { @Override public Group update(Group entity) throws SecurityManagementException { throw new UnsupportedServiceCapabilityException(Capability.CAN_UPDATE_GROUP); } 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(expected = UnsupportedServiceCapabilityException.class) public void testUpdateGroup() { Group group = mock(Group.class); when(group.getName()).thenReturn("role10"); groupsManager.update(group); }