public static Future<?> runClosureInThread(String groupId, final Closure done, final Status status) {
        if (done == null) {
            return null;
        }
        return runInThread(groupId, () -> {
            try {
                done.run(status);
            } catch (final Throwable t) {
                LOG.error("Fail to run done closure", t);
            }
        });
    }
@Test
    public void testRunClosure() throws Exception {
        CountDownLatch latch = new CountDownLatch(1);
        ThreadPoolsFactory.runClosureInThread(GROUP_ID_001, status -> {
            assertTrue(status.isOk());
            latch.countDown();
        });
        latch.await();
    }