@Override
    public GoPluginDescriptor getPluginDescriptorFor(String pluginId) {
        return registry.getPlugin(pluginId);
    }
@Test
    void shouldGetPluginDescriptorForGivenPluginIdCorrectly() {
        DefaultPluginManager pluginManager = new DefaultPluginManager(monitor, registry, goPluginOSGiFramework, jarChangeListener, null, systemEnvironment, pluginLoader);
        GoPluginDescriptor pluginDescriptorForP1 = GoPluginDescriptor.builder().id("p1").version("1.0").build();
        when(registry.getPlugin("valid-plugin")).thenReturn(pluginDescriptorForP1);
        when(registry.getPlugin("invalid-plugin")).thenReturn(null);
        assertThat(pluginManager.getPluginDescriptorFor("valid-plugin")).isEqualTo(pluginDescriptorForP1);
        assertThat(pluginManager.getPluginDescriptorFor("invalid-plugin")).isNull();
    }