@Test
  public void testCreateAndUpgradeDocumentFromXml() throws Exception {
    Document doc = XmlUtils.createAndUpgradeDocumentFromXml(IOUtils.toString(
        getClass().getResourceAsStream("SharedConfigurationJUnitTest.xml"),
        StandardCharsets.UTF_8));

    String schemaLocation = XmlUtils.getAttribute(doc.getDocumentElement(),
        W3C_XML_SCHEMA_INSTANCE_ATTRIBUTE_SCHEMA_LOCATION, W3C_XML_SCHEMA_INSTANCE_NS_URI);

    assertNotNull(schemaLocation);
    assertEquals(GEODE_NAMESPACE + " " + CacheXml.LATEST_SCHEMA_LOCATION, schemaLocation);

    assertEquals(CacheXml.VERSION_LATEST,
        XmlUtils.getAttribute(doc.getDocumentElement(), "version"));
  }
Test method for {@link XmlUtils#changeNamespace(Node, String, String)}.
geode-core/src/test/java/org/apache/geode/management/internal/configuration/utils/XmlUtilsJUnitTest.java