@Override
    public boolean isTerminated() {
        return shutdown.get() && taskQ.isEmpty();
    }
@Test
    public void isTerminated() {
        ManagedExecutorService executorService = newManagedExecutorService();
        executorService.shutdown();
        assertTrue(executorService.isTerminated());
    }