public void createPartitionRegion(String name, Class constraint) {
    ExpirationAttributes expiration = ExpirationAttributes.DEFAULT;
    PartitionAttributesFactory paf = new PartitionAttributesFactory();
    RegionFactory factory =
        cache.createRegionFactory(RegionShortcut.PARTITION).setPartitionAttributes(paf.create());
    if (constraint != null) {
      factory.setValueConstraint(constraint);
    }
    factory.create(name);

  }
Utility class for testing supported queries
geode-dunit/src/main/java/org/apache/geode/cache/query/QueryTestUtils.java