### Question:
Violation { @Override public String toString() { return message; } Violation(String message); @Override String toString();  }### Answer:
@Test public void testToString() { Violation violation = new Violation("message"); assertThat(violation.toString(), is("message")); }