public void createSubRegion(final String rootName, final String name,
      final RegionAttributes regionAttributes, VM vm) {
    vm.invoke(new CacheSerializableRunnable("Creating subregion") {
      private static final long serialVersionUID = 1L;

      @Override
      public void run2() throws CacheException {
        getLogger().fine("### Create subregion. ###");
        Region root = cache.getRegion(rootName);
        if (root == null) {
          root = cache.createRegionFactory().create(rootName);
        }
        RegionAttributes ra = null;
        if (regionAttributes == null) {
          ra = new AttributesFactory().create();
        }
        root.createSubregion(name, ra);
      }
    });
  }
Utility class for testing supported queries
geode-dunit/src/main/java/org/apache/geode/cache/query/QueryTestUtils.java