@Override
    public void pluginUnLoaded(GoPluginDescriptor pluginDescriptor) {
        if (scmExtension.canHandlePlugin(pluginDescriptor.id())) {
            scmMetadataStore.removeMetadata(pluginDescriptor.id());
        }
    }
@Test
    public void shouldNotTryRemoveMetadataOnPluginUnLoadedCallback() throws Exception {
        SCMConfigurations scmConfigurations = new SCMConfigurations();
        SCMView scmView = createSCMView(null, null);
        SCMMetadataStore.getInstance().addMetadataFor(pluginDescriptor.id(), scmConfigurations, scmView);
        when(scmExtension.canHandlePlugin(pluginDescriptor.id())).thenReturn(false);

        metadataLoader.pluginUnLoaded(pluginDescriptor);

        assertThat(SCMMetadataStore.getInstance().getConfigurationMetadata(pluginDescriptor.id())).isEqualTo(scmConfigurations);
        assertThat(SCMMetadataStore.getInstance().getViewMetadata(pluginDescriptor.id())).isEqualTo(scmView);
    }