@Override
    public ThreadPoolPluginSupport cancelManagement(String threadPoolId) {
        return managedThreadPoolPluginSupports.remove(threadPoolId);
    }
@Test
    public void testCancelManagement() {
        GlobalThreadPoolPluginManager manager = new DefaultGlobalThreadPoolPluginManager();
        manager.enableThreadPoolPlugin(new TestPlugin("1"));

        TestSupport support = new TestSupport("1");
        manager.registerThreadPoolPluginSupport(support);
        Assert.assertEquals(1, support.getAllPlugins().size());

        manager.cancelManagement(support.getThreadPoolId());
        manager.enableThreadPoolPlugin(new TestPlugin("2"));
        Assert.assertEquals(1, support.getAllPlugins().size());
    }