@Test
public void getJobExecutionsTest() {

    final JobInstance jobInstance = DomainTestHelper.createJobInstance(1l, JOB_NAME);
    when(this.jobExplorer.getJobExecutions(jobInstance)).thenReturn(DomainTestHelper.createJobExecutions(10));
    final Collection<JobExecution> jobExecutions = this.jobService.getJobExecutions(jobInstance);
    assertThat(jobExecutions).isNotEmpty();
    assertThat(jobExecutions.size()).isEqualTo(10);
}