TaggedComponentManager { public Collection<Component> getComponentsForTag(String tag) { Set<Component> components = taggedComponents.get(tag); if (components == null) { return Collections.emptyList(); } else { return components; } }  void tagComponents(String tag, Component... componentsToTag); Collection<Component> getComponentsForTag(String tag); void show(String tag, boolean condition); void hide(String tag, boolean condition); void disable(String tag, boolean condition); void enable(String tag, boolean condition); void showAll(); void hideIfOthersHidden(Component component, Component... others);  }
@Test public void testInitialization() { assertTrue(manager.getComponentsForTag(TAG1).isEmpty()); assertTrue(manager.getComponentsForTag(TAG2).isEmpty()); }