@Test
public void getJobExecutionsPageTest() {

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