### Question:
Violation { public String getMessage() { return message; } Violation(Rule rule, HtmlElement htmlElement, String message); Rule getRule(); String getMessage(); String getPosition(); URL getURL(); @Override String toString();  }### Answer:
@Test public void violationKnowsTheMessage() throws Exception { String expectedMessage = someMessage(); assertEquals(expectedMessage, new Violation(someRule(), someElement(), expectedMessage).getMessage()); }