final Job job = Mockito.mock(Job.class);
Mockito.when(job.getId()).thenReturn(JOB_1_ID);
Mockito.when(jobRepo.findOne(JOB_1_ID)).thenReturn(job);
final JobManager manager = Mockito.mock(JobManager.class);
Mockito.when(jobManagerFactory.getJobManager(job)).thenReturn(manager);
impl.runJob(job);
Mockito.verify(jobRepo, Mockito.times(1)).findOne(JOB_1_ID);
Mockito.verify(jobManagerFactory, Mockito.times(1)).getJobManager(job);