JobExecutor implements AutoCloseable { public void shutdown() { executorService.shutdown(); } JobExecutor();  JobExecutor(int nbWorkers);  JobExecutor(ExecutorService executorService); JobReport execute(Job job); Future<JobReport> submit(Job job); List<Future<JobReport>> submitAll(Job... jobs); List<Future<JobReport>> submitAll(List<Job> jobs); void shutdown(); void awaitTermination(long timeout, TimeUnit unit); @Override void close();  }
@Test public void shutdown() { jobExecutor.shutdown(); verify(executorService).shutdown(); }