public static Region createPartionedRegion(String regionname) throws RegionExistsException {
    return createPartionedRegion(regionname, new PartitionAttributesFactory().create());
  }
This method creates a partitioned region with all the default values. The cache created is a
loner, so this is only suitable for single VM tests.
geode-junit/src/main/java/org/apache/geode/internal/cache/PartitionedRegionTestHelper.java