@Test
public void testGetDocument() throws Exception {

	DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactoryUtils.newInstance();
	documentBuilderFactory.setNamespaceAware(true);
	DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
	Document document = documentBuilder.newDocument();
	Assert.assertSame("Invalid document", document, TraxUtils.getDocument(new DOMSource(document)));
	Element element = document.createElement("element");
	document.appendChild(element);
	Assert.assertSame("Invalid document", document, TraxUtils.getDocument(new DOMSource(element)));
}