Violation { public String getMessage() { return message; } Violation(String propertyName, Object invalidValue, String message, String code); String getMessage(); Object getInvalidValue(); String getPropertyName(); String getCode();  }
@Test public void getMessage() throws Exception { assertEquals("Message equals", ERROR_MESSAGE, violation.getMessage()); }