List<FieldValidationErrorDTO> fieldErrorDTOs = dto.getFieldErrors();
assertEquals(2, fieldErrorDTOs.size());
FieldValidationErrorDTO titleFieldErrorDTO = fieldErrorDTOs.get(0);
assertEquals(FIELD_TITLE, titleFieldErrorDTO.getPath());
assertEquals(ERROR_MESSAGE_CODE_EMPTY_TODO_TITLE, titleFieldErrorDTO.getMessage());
FieldValidationErrorDTO descriptionFieldErrorDTO = fieldErrorDTOs.get(1);
assertEquals(FIELD_DESCRIPTION, descriptionFieldErrorDTO.getPath());
assertEquals(ERROR_MESSAGE_CODE_TOO_LONG_DESCRIPTION, descriptionFieldErrorDTO.getMessage());
}