}
assertTrue("Expected an exception because invalid_xml.xml is wrong", exception != null);
assertTrue(invocationCounter.getInvocationCount() > 0);
invocationCounter.reset();
// Intentionally call builder again to make sure the same error is returned.
Exception exception2 = null;
try {
stAXOMBuilder.next();