### Question:
OgcXmlUtil { public static Element getDocumentElement(Document doc) { Element docElement = null; if (doc != null) { docElement = doc.getDocumentElement(); if (docElement != null) { docElement.normalize(); } } return docElement; }  static String getRequestBody(HttpServletRequest request); static Document getDocumentFromString(String xml); static String getPathInDocument(Document document, String path); static NodeList getPathInDocumentAsNodeList(Document document, String path); static Element getDocumentElement(Document doc);  }### Answer:
@Test public void getDocumentElement() throws IOException { Document doc = OgcXmlUtil.getDocumentFromString(XML_STRING); assertNotNull(doc); Element element = OgcXmlUtil.getDocumentElement(doc); assertNotNull(element); assertEquals("Root name matches", element.getNodeName(), "root"); }