void () { var pluginsPath = Path.of(PlatformTestUtil.getPlatformTestDataPath(), "plugins", "withModules"); var descriptorBundled = loadDescriptorInTest(pluginsPath, true); var pluginSet = new PluginSetBuilder(Set.of(descriptorBundled)).createPluginSetWithEnabledModulesMap(); var moduleId = PluginId.getId("foo.bar"); var corePlugin = PluginId.getId("my.plugin"); assertThat(pluginSet.findEnabledPlugin(moduleId).getPluginId()).isEqualTo(corePlugin); }