@Test
  public void testUpgradeSchemaFromGeodeNamespaceToAnotherVersion() throws Exception {
    Document doc = XmlUtils.createDocumentFromXml(CLUSTER9_XML);
    Element oldRoot = doc.getDocumentElement();
    assertThat(oldRoot.getAttribute(CacheXml.VERSION)).isEqualTo("1.0");
    assertThat(oldRoot.getNamespaceURI()).isEqualTo(GEODE_NAMESPACE);
    assertThat(oldRoot.getAttribute("xsi:schemaLocation")).isEqualTo(GEODE_SCHEMA_LOCATION);

    String schemaLocation2 = "http://geode.apache.org/schema/cache/cache-2.0.xsd";
    doc = XmlUtils.upgradeSchema(doc, GEODE_NAMESPACE, schemaLocation2, "2.0");
    Element root = doc.getDocumentElement();

    assertThat(root.getNamespaceURI()).isEqualTo(GEODE_NAMESPACE);
    assertThat(root.getAttribute(CacheXml.VERSION)).isEqualTo("2.0");
    assertThat(root.getAttribute("xsi:schemaLocation"))
        .isEqualTo(GEODE_NAMESPACE + " " + schemaLocation2);
  }
Test method for {@link XmlUtils#changeNamespace(Node, String, String)}.
geode-core/src/test/java/org/apache/geode/management/internal/configuration/utils/XmlUtilsJUnitTest.java