jobExecutions.add(execution);
when(jobService.getJobInstance(jobInstance1.getInstanceId())).thenReturn(jobInstance1);
when(jobService.getJobExecutionsForJobInstance(jobInstance1.getJobName(), jobInstance1.getInstanceId())).thenReturn(
jobExecutions2);
when(jobService.getJobInstance(100)).thenThrow(new NoSuchBatchJobInstanceException(100));
when(jobService.getJobInstance(101)).thenReturn(jobInstance2);
when(jobService.getJobExecutionsForJobInstance("job2", jobInstance2.getInstanceId())).thenThrow(
new NoSuchJobException("job2"));
}