@Test void testCall() { JobExecutionContext jobExecutionContext = JobExecutionContext.builder().setAuthentication(authentication).setLocale(locale).build(); new JobExecutionTemplate().call(job, progress, jobExecutionContext); verify(progress).start(); verify(progress).success(); }
<T> T call(Job<T> job, Progress progress, JobExecutionContext jobExecutionContext) { return runWithContext(jobExecutionContext, () -> tryCall(job, progress)); }
JobExecutionTemplate { <T> T call(Job<T> job, Progress progress, JobExecutionContext jobExecutionContext) { return runWithContext(jobExecutionContext, () -> tryCall(job, progress)); } }
JobExecutionTemplate { <T> T call(Job<T> job, Progress progress, JobExecutionContext jobExecutionContext) { return runWithContext(jobExecutionContext, () -> tryCall(job, progress)); }  }
JobExecutionTemplate { <T> T call(Job<T> job, Progress progress, JobExecutionContext jobExecutionContext) { return runWithContext(jobExecutionContext, () -> tryCall(job, progress)); }   }
JobExecutionTemplate { <T> T call(Job<T> job, Progress progress, JobExecutionContext jobExecutionContext) { return runWithContext(jobExecutionContext, () -> tryCall(job, progress)); }    }