### Question:
ValidationResult { public boolean hasErrors() { return !errors.isEmpty(); } ValidationResult(); List<ValidationError> getErrors(); void addError(String description, String messageCode); void addError(ValidationError validationError); void assertOk(); boolean hasErrors(); @Override String toString();  }### Answer:
@Test public void shouldReturnTrueIfValidationHasErrors() throws Exception { assertTrue(validationResultWithErrors.hasErrors()); }
@Test public void shouldReturnFalseIfValidationHasNoErrors() throws Exception { assertFalse(validationResultWithoutErrors.hasErrors()); }