@Test
public void testGetQNameForDomSource() throws Exception {

	DocumentBuilderFactory factory = DocumentBuilderFactoryUtils.newInstance();
	DocumentBuilder builder = factory.newDocumentBuilder();
	Document document = builder.newDocument();
	Element element = document.createElementNS("namespace", "prefix:localname");
	document.appendChild(element);
	Source source = new DOMSource(document);
	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());
}