PluginDocTree { public Set<String> getPluginNames() { return plugins.keySet(); }  void addPlugin(String name, PluginDoc plugin); void addCommand(String pluginName, CommandDoc command); Set<String> getPluginNames(); PluginDoc getPlugin(String name); List<CommandDoc> getCommands(String pluginName);  }
@Test public void testGetPluginNames() { pluginDocTree.addPlugin("pluginDoc1", pluginDoc1); pluginDocTree.addPlugin("pluginDoc2", pluginDoc2); assertThat(pluginDocTree.getPluginNames(), containsInAnyOrder("pluginDoc1", "pluginDoc2")); }