@Test
public void testGetQNameForNode() throws Exception {

	DocumentBuilderFactory factory = DocumentBuilderFactoryUtils.newInstance();
	DocumentBuilder builder = factory.newDocumentBuilder();
	Document document = builder.newDocument();
	Element element = document.createElementNS("namespace", "prefix:localname");
	QName qName = QNameUtils.getQNameForNode(element);
	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());
}