@Override
    public void pluginUnLoaded(GoPluginDescriptor pluginDescriptor) {
        super.pluginUnLoaded(pluginDescriptor);

        if (extension.canHandlePlugin(pluginDescriptor.id())) {
            for (PluginMetadataChangeListener listener : listeners) {
                listener.onPluginMetadataRemove(pluginDescriptor.id());
            }
        }
    }
@Test
    public void onPluginUnloaded_shouldRemoveTheCorrespondingPluginInfoFromStore() throws Exception {
        GoPluginDescriptor descriptor =  GoPluginDescriptor.builder().id("plugin1").build();
        AnalyticsMetadataLoader metadataLoader = new AnalyticsMetadataLoader(pluginManager, metadataStore, infoBuilder, extension);
        AnalyticsPluginInfo pluginInfo = new AnalyticsPluginInfo(descriptor, null, null, null);

        metadataStore.setPluginInfo(pluginInfo);

        metadataLoader.pluginUnLoaded(descriptor);

        verify(metadataStore).remove(descriptor.id());
    }