CacheSerializableRunnable getCacheSerializableRunnableForIndexCreationCheck(
      final String name) {
    return new CacheSerializableRunnable("PrIndexCreationCheck") {
      @Override
      public void run2() {
        Cache cache1 = getCache();
        LogWriter logger = cache1.getLogger();
        PartitionedRegion region = (PartitionedRegion) cache1.getRegion(name);
        Map indexMap = region.getIndex();
        Set indexSet = indexMap.entrySet();
        for (final Object o : indexSet) {
          Map.Entry entry = (Map.Entry) o;
          Index index = (Index) entry.getValue();
          logger.info("the partitioned index created on this region " + " " + index);
          logger.info("Current number of buckets indexed : " + ""
              + ((PartitionedIndex) index).getNumberOfIndexedBuckets());
        }

        JUnit4CacheTestCase.closeCache();
        JUnit4DistributedTestCase.disconnectFromDS();

      }
    };
  }
Creats a partiotioned region using an xml file descriptions.
geode-core/src/distributedTest/java/org/apache/geode/cache/query/partitioned/PRQueryDUnitHelper.java