public static void init(final Map<String, PluginConfiguration> pluginConfigs, final Collection<JarFile> pluginJars, final ClassLoader pluginClassLoader, final boolean isEnhancedForProxy) {
        if (STARTED_FLAG.compareAndSet(false, true)) {
            start(pluginConfigs, pluginClassLoader, isEnhancedForProxy);
            Runtime.getRuntime().addShutdownHook(new Thread(() -> close(pluginJars)));
        }
    }
@Test
    void assertInitPluginLifecycleServiceWithMockHandler() throws MalformedURLException {
        URLStreamHandlerFactory urlStreamHandlerFactory = mock(URLStreamHandlerFactory.class);
        PluginLifecycleServiceManager.init(Collections.emptyMap(), Collections.emptyList(),
                new PrivateMLet(new URL[]{Paths.get(System.getProperty("java.io.tmpdir"), "test.txt").toUri().toURL()},
                        new MultipleParentClassLoader(Collections.emptyList()), urlStreamHandlerFactory, true),
                true);
        verify(urlStreamHandlerFactory).createURLStreamHandler(anyString());
    }