@Test
public void testGetQNameForStaxSourceEventReader() throws Exception {

	String contents = "<prefix:localname xmlns:prefix='namespace'/>";
	XMLInputFactory inputFactory = XMLInputFactoryUtils.newInstance();
	XMLEventReader eventReader = inputFactory.createXMLEventReader(new StringReader(contents));
	Source source = StaxUtils.createStaxSource(eventReader);
	QName qName = PayloadRootUtils.getPayloadRootQName(source, TransformerFactoryUtils.newInstance());
	Assert.assertNotNull("getQNameForNode returns null", qName);
	Assert.assertEquals("QName has invalid localname", "localname", qName.getLocalPart());
	Assert.assertEquals("Qname has invalid namespace", "namespace", qName.getNamespaceURI());
	Assert.assertEquals("Qname has invalid prefix", "prefix", qName.getPrefix());
}