protected void assertStartElement(String expectedUri, String expectedLocalName, String expectedQName,
Attributes expectedAttributes, TestEvent actual) {
printIfFatal(actual);
if (!(actual instanceof StartElementEvent))
fail("Event must be StartElementEvent but was " + actual.getClass());
StartElementEvent startElementEvent = (StartElementEvent) actual;
assertEquals("URI", expectedUri, startElementEvent.getURI());
assertEquals("local name", expectedLocalName, startElementEvent.getLocalName());
assertEquals("qName", expectedQName, startElementEvent.getQName());
assertAttributes(expectedAttributes, startElementEvent.getAtts());
}