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