@Test
public void testGetJobExecutionModelPage() {

    final int pageSize = 5;
    final int startIndex = 0;
    final Long jobInstanceId = 1L;
    final LightminClientApplication applicationInstance = new LightminClientApplication();
    when(this.registrationBean.findById(APPLICATION_INSTANCE_ID)).thenReturn(applicationInstance);
    final JobExecutionPage jobExecutionPage = ApiTestHelper.createJobExecutionPage(pageSize);
    when(this.jobServerService.
            getJobExecutionPage(jobInstanceId, applicationInstance)).thenReturn(jobExecutionPage);
    final JobInstancePage jobInstancePage = ApiTestHelper.createJobInstancePage(1);
    when(this.jobServerService.getJobInstances("test_job", 0, pageSize, applicationInstance)).thenReturn(jobInstancePage);
    final ContentPageModel<List<JobExecutionModel>> result =
            this.jobExecutionFeService.getJobExecutionModelPage(APPLICATION_INSTANCE_ID, "test_job", startIndex, pageSize);
    BDDAssertions.then(result).isNotNull();
    BDDAssertions.then(result.getValue()).isNotNull();
    BDDAssertions.then(result.getValue().size()).isEqualTo(pageSize);
}