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