@Test
public void getString() throws Exception {

    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = dbf.newDocumentBuilder();
    Document document = builder.newDocument();
    document.appendChild(document.createElement("CREATED"));
    String retrieved = DOMParserUtil.getString(document);
    assertNotNull(retrieved);
    assertTrue(retrieved.contains("CREATED"));
}