@Test
public void testGetJobExecutionEventModels() {

    final int pageSize = 5;
    final List<JobExecutionEventInfo> jobExecutionEventInfos =
            ServiceTestHelper.createJobExecutionEvents(pageSize, "test_application");
    when(this.eventService.getAllJobExecutionEvents(0, pageSize)).thenReturn(jobExecutionEventInfos);
    final ContentPageModel<List<JobExecutionEventModel>> result =
            this.jobExecutionEventFeService.getJobExecutionEventModels(0, pageSize);
    BDDAssertions.then(result).isNotNull();
    BDDAssertions.then(result.getValue()).isNotNull();
    BDDAssertions.then(result.getValue().size()).isEqualTo(pageSize);
}