retryCounter++;
}
ListResult<TaskInfo> tasks = service.list(Task.list(actualJob
.getTasksLink()));
TaskInfo taskInfo = tasks.get(0);
List<ErrorDetail> errorDetails = taskInfo.getErrorDetails();
assertEquals(1, errorDetails.size());
ErrorDetail errorDetail = errorDetails.get(0);
assertNotNull(errorDetail.getCode());
assertNotNull(errorDetail.getMessage());