@Test
  public void testDiskUsage() throws Exception {
    CacheCreation cache = new CacheCreation();

    DiskStoreAttributesCreation disk = new DiskStoreAttributesCreation();
    disk.setDiskUsageWarningPercentage(97);
    disk.setDiskUsageCriticalPercentage(98);
    disk.setName("mydisk");
    cache.addDiskStore(disk);

    RegionAttributesCreation attrs = new RegionAttributesCreation(cache);
    attrs.setDataPolicy(DataPolicy.PERSISTENT_REPLICATE);
    attrs.setDiskStoreName("mydisk");

    cache.createVMRegion("whatever", attrs);
    testXml(cache);
  }
Tests xml creation for indexes First creates 3 indexes and makes sure the cache creates all 3
Creates a 4th through the api and writes out the xml Restarts the cache with the new xml Makes
sure the new cache has the 4 indexes
geode-core/src/distributedTest/java/org/apache/geode/cache30/CacheXml80DUnitTest.java