@Test
public void usePluginWithIdByType() {
Class<? extends Plugin> type = pluginWithIdMock.getClass();
Plugin addedPlugin = projectsPluginHandler.apply(type);
assertThat(pluginWithIdMock, sameInstance(addedPlugin));
assertThat(projectsPluginHandler.apply(type), sameInstance(addedPlugin));
assertThat(projectsPluginHandler.apply(pluginId), sameInstance(addedPlugin));
assertThat(projectsPluginHandler.findPlugin(type), sameInstance(addedPlugin));