AddMembersController extends AbstractCommandController { public void setGroupsController(TabbedGroupController groupsController) { this.groupsController = groupsController; } AddMembersController(); GroupsEditorContext getEditorContext(HttpServletRequest req); void setGroupsController(TabbedGroupController groupsController); void setTargetManager(TargetManager targetManager); void setAuthorityManager(AuthorityManager authorityManager);  }
@Test public final void testSetGroupsController() { try { TabbedGroupController tc = new TabbedGroupController(); TabConfig tabConfig = new TabConfig(); tabConfig.setViewName("groups"); List<Tab> tabs = getTabList(); tabConfig.setTabs(tabs); tc.setTabConfig(tabConfig); tc.setDefaultCommandClass(org.webcurator.ui.groups.command.DefaultCommand.class); testInstance.setGroupsController(tc); } catch(Exception e) { fail(e.getMessage()); } }