private void testStreamReader(Object result) throws XMLStreamException {
assertTrue("resolver does not return XMLStreamReader", result instanceof XMLStreamReader);
XMLStreamReader streamReader = (XMLStreamReader) result;
assertTrue("streamReader has no next element", streamReader.hasNext());
assertEquals(XMLStreamConstants.START_ELEMENT, streamReader.nextTag());
assertEquals("Invalid namespace", NAMESPACE_URI, streamReader.getNamespaceURI());
assertEquals("Invalid local name", LOCAL_NAME, streamReader.getLocalName());
}
private void testEventReader(Object result) throws XMLStreamException {