@Override
    public boolean isTerminated() {
        return shutdown.get() && taskQ.isEmpty();
    }
@Test
    public void isTerminated_whenRunning() {
        assertFalse(newManagedExecutorService().isTerminated());
    }