@Override
    public void register(@NonNull ThreadPoolPlugin plugin) {
        mainLock.runWithWriteLock(() -> {
            String id = plugin.getId();
            Assert.isTrue(!isRegistered(id), "The plugin with id [" + id + "] has been registered");
            registeredPlugins.put(id, plugin);
            forQuickIndexes(quickIndex -> quickIndex.addIfPossible(plugin));
            plugin.start();
        });
    }
@Test
    public void testGetPluginRuntime() {
        manager.register(new TestExecuteAwarePlugin());
        Assert.assertTrue(manager.getRuntime(TestExecuteAwarePlugin.class.getSimpleName()).isPresent());
    }