JobExecutor implements AutoCloseable { public Future<JobReport> submit(Job job) { return executorService.submit(job); } 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 submit() { jobExecutor.submit(job); verify(executorService).submit(job); }