@Test
public void getJobInstancesTest() {

    when(this.jobExplorer.getJobInstances(JOB_NAME, 0, 10)).thenReturn(DomainTestHelper.createJobInstances(10, JOB_NAME));
    final Collection<JobInstance> jobInstances = this.jobService.getJobInstances(JOB_NAME, 0, 10);
    assertThat(jobInstances).isNotEmpty();
    assertThat(jobInstances.size()).isEqualTo(10);
}