@Override
    public Set<String> getExtensionClassNames(String pluginId) {
        if (currentPluginId.equals(pluginId)) {
            return original.getExtensionClassNames(pluginId);
        } else {
            throw new IllegalAccessError(PLUGIN_PREFIX + currentPluginId + " tried to execute getExtensionClassNames for foreign pluginId!");
        }
    }
@Test
    public void getExtensionClassNames() {
        pluginManager.loadPlugins();
        assertThrows(IllegalAccessError.class, () -> wrappedPluginManager.getExtensionClassNames(OTHER_PLUGIN_ID));
        assertEquals(1, wrappedPluginManager.getExtensionClassNames(THIS_PLUGIN_ID).size());
    }