@Override
    public void pluginUnLoaded(GoPluginDescriptor pluginDescriptor) {
        if (notificationExtension.canHandlePlugin(pluginDescriptor.id())) {
            notificationPluginRegistry.deregisterPlugin(pluginDescriptor.id());
            notificationPluginRegistry.removePluginInterests(pluginDescriptor.id());
        }
    }
@Test
    public void shouldUnregisterPluginInterestsOnPluginUnLoad() {
        NotificationPluginRegistrar notificationPluginRegistrar = new NotificationPluginRegistrar(pluginManager, notificationExtension, notificationPluginRegistry);

        notificationPluginRegistrar.pluginUnLoaded(GoPluginDescriptor.builder().id(PLUGIN_ID_1).isBundledPlugin(true).build());
        verify(notificationPluginRegistry).removePluginInterests(PLUGIN_ID_1);
    }