### Question:
AbstractRule implements Rule { @Override public String toString() { return getClass().getSimpleName() + "[name=" + getName() + ", priority=" + getPriority() + "]"; }  @Override abstract String getName(); @Override final Violations applyTo(HtmlPage htmlPage); @Override String toString(); @Override Priority getPriority(); @Override void setPriority(Priority priority);  }### Answer:
@Test public void toStringReturnsReadableStringRepresentation() { String specificRule = "MyRuleName"; String expectedToString = "SpecificRule[name=" + specificRule + ", priority=normal]"; assertEquals(expectedToString, new SpecificRule(specificRule).toString()); }