AbstractHmlValidationRule implements HmlValidationRule { @Override public String toString() { return description; } protected  AbstractHmlValidationRule(final String description); @Override String toString();  }
@Test public void testConstructor() { assertEquals("description", new AbstractHmlValidationRule("description") { @Override public boolean validate(final Hml hml) throws HmlValidationException { return true; } }.toString()); }