### Question:
EntityReferenceEvent extends DocumentBuilderEvent { @Override public String toString() { return String.format("entityReference(\"%s\")", entity); } EntityReferenceEvent(String entity); @Override void invoke(DocumentBuilder builder); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }### Answer:
@Test public void testToString() { assertEquals("entityReference(\"ent\")", new EntityReferenceEvent("ent").toString()); }