public static Document toXmlDoc(String xml) {
        return toXmlDoc(xml, false);
    }
@Test
    void testParsing() {
        String xml = "<foo></foo>";
        Document doc = XmlUtils.toXmlDoc(xml);
        String rootName = doc.getDocumentElement().getNodeName();
        assertEquals("foo", rootName);
    }