@Test
public void testSortingOfJobExecutionResults() throws Exception {

    JobExecutionResult execution5 = jobExecutionResult(5L);
    JobExecutionResult execution2 = jobExecutionResult(2L);
    JobExecutionResult execution19 = jobExecutionResult(19L);
    List<JobExecutionResult> executions = asList(execution5, execution2, execution19);
    JobResult jobResult = new JobResult(null, null, executions);
    assertThat(jobResult.getJobExecutionResults()).containsExactly(execution19, execution5, execution2);
}