### Question:
BeginHeadingEvent extends DocumentBuilderEvent { @Override public String toString() { return String.format("beginHeading(%s)", level); } BeginHeadingEvent(int level, Attributes attributes); @Override void invoke(DocumentBuilder builder); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }### Answer:
@Test public void testToString() { assertEquals("beginHeading(2)", new BeginHeadingEvent(2, new Attributes()).toString()); }