GCDExecutorService extends AbstractExecutorService { public boolean isShutdown() { return state != State.RUNNING; } GCDExecutorService(); void shutdown(); List<Runnable> shutdownNow(); boolean isShutdown(); boolean isTerminated(); boolean awaitTermination(long timeout, TimeUnit unit); void execute(Runnable command);  }
@Test public void testIsShutdown() { fixture.shutdown(); assertTrue(fixture.isShutdown()); }