  @Test
  public void testCleanShutdown() throws InterruptedException {

    final int wait = 1;
    ExecutorService threadPool = mock(ExecutorService.class);
    when(threadPool.awaitTermination(wait, TimeUnit.SECONDS)).thenReturn(true);
    ThreadPoolKiller.shutdown(threadPool, "TestPool", wait);
    verify(threadPool).shutdown();
    verify(threadPool).awaitTermination(wait, TimeUnit.SECONDS);
  }