ListResult<TaskInfo> tasks = service.list(Task.list(actualJobInfo
.getTasksLink()));
TaskInfo taskInfo = tasks.get(0);
List<TaskHistoricalEvent> historicalEvents = taskInfo
.getHistoricalEvents();
TaskHistoricalEvent historicalEvent = historicalEvents.get(0);
// Assert
assertTrue(historicalEvents.size() >= 5);
assertNotNull(historicalEvent.getCode());
assertNotNull(historicalEvent.getTimeStamp());
assertNull(historicalEvent.getMessage());
}