@Override
    public void onPluginChanged(final List<PluginData> changed, final DataEventTypeEnum eventType) {
        if (CollectionUtils.isEmpty(changed)) {
            return;
        }
        this.updatePluginCache();
        this.afterPluginChanged(changed, eventType);
    }
@Test
    public void testOnPluginChanged() {
        List<PluginData> empty = Lists.newArrayList();
        DataEventTypeEnum eventType = mock(DataEventTypeEnum.class);
        listener.onPluginChanged(empty, eventType);
        assertFalse(listener.getCache().containsKey(ConfigGroupEnum.PLUGIN.name()));
        List<PluginData> pluginDatas = Lists.newArrayList(mock(PluginData.class));
        listener.onPluginChanged(pluginDatas, eventType);
        assertTrue(listener.getCache().containsKey(ConfigGroupEnum.PLUGIN.name()));
    }