@Test
  public void testUpgradeSchemaWithMultipNS() throws Exception {
    String xml = "<cache xmlns=\"http://cache\"\n"
        + "       xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
        + "       xmlns:aop=\"http://aop\"\n" + "       version=\"8.1\"\n"
        + "       xsi:schemaLocation=\"http://cache http://test.org/cache.xsd "
        + "        http://aop http://test.org/aop.xsd\">\n" + "</cache>";
    Document doc = XmlUtils.createDocumentFromXml(xml);

    String version = "1.0";
    String namespace = "http://geode.apache.org/schema/cache";
    doc = XmlUtils.upgradeSchema(doc, GEODE_NAMESPACE, LATEST_SCHEMA_LOCATION, "1.0");

    Element root = doc.getDocumentElement();

    String expectedSchemaLocation = "http://aop http://test.org/aop.xsd " + GEODE_SCHEMA_LOCATION;
    assertThat(root.getNamespaceURI()).isEqualTo(namespace);
    assertThat(root.getAttribute(CacheXml.VERSION)).isEqualTo(version);
    assertThat(root.getAttribute("xsi:schemaLocation")).isEqualTo(expectedSchemaLocation);
  }
Test method for {@link XmlUtils#changeNamespace(Node, String, String)}.
geode-core/src/test/java/org/apache/geode/management/internal/configuration/utils/XmlUtilsJUnitTest.java