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