@Test
public void shouldOrderMostRecentEndFirst() {

    long mostRecentEndDate = 35374L;
    List<AsyncExecution> unOrderedAsyncs =
            Lists.newArrayList(buildAsyncExecution(AsyncExecution.Status.DONE, 25374L),
                    buildAsyncExecution(AsyncExecution.Status.DONE, mostRecentEndDate));
    unOrderedAsyncs.sort(naturalOrder());
    assertEquals(mostRecentEndDate, unOrderedAsyncs.get(0).getTime().getEndDate());
}