### Question:
RequestDispatcher extends AbstractExecutorService { @Override public void shutdown() { if (mHandler != null) { mHandler.removeCallbacksAndMessages(null); } if (mCallbackExecutor instanceof ExecutorService) { ((ExecutorService) mCallbackExecutor).shutdown(); mCallbackExecutor = null; } if (mExecutorService != null) { mExecutorService.shutdown(); mExecutorService = null; } if (mTaskExecutor != null) { mTaskExecutor.shutdown(); mTaskExecutor = null; } mShutdown = true; } RequestDispatcher(Executor callbackExecutor); @Override void shutdown(); void stopAllTasks(); @Override List<Runnable> shutdownNow(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override boolean awaitTermination(long timeout, TimeUnit unit); void submitResults(Runnable command); @Override Future<?> submit(Runnable task); @Override void execute(Runnable command); void runTask(Runnable runnable); @VisibleForTesting(otherwise = VisibleForTesting.NONE) static String createStackElementTagFor(Thread thread);  }### Answer:
@Test public void shutdown() { mDispatcher.shutdown(); assertTrue(mDispatcher.isShutdown()); }