private void testEventReader(Object result) throws XMLStreamException {
assertTrue("resolver does not return XMLEventReader", result instanceof XMLEventReader);
XMLEventReader eventReader = (XMLEventReader) result;
assertTrue("eventReader has no next element", eventReader.hasNext());
XMLEvent event = eventReader.nextTag();
assertEquals(XMLStreamConstants.START_ELEMENT, event.getEventType());
StartElement startElement = (StartElement) event;
assertEquals("Invalid namespace", NAMESPACE_URI, startElement.getName().getNamespaceURI());
assertEquals("Invalid local name", LOCAL_NAME, startElement.getName().getLocalPart());
}