public Region createPartitionRegion(String name, Consumer<RegionFactory> regionFactoryConsumer,
      Consumer<PartitionAttributesFactory> attributesFactoryConsumer) {
    return createRegion(RegionShortcut.PARTITION, name, rf -> {
      regionFactoryConsumer.accept(rf);
      PartitionAttributesFactory attributeFactory = new PartitionAttributesFactory();
      attributesFactoryConsumer.accept(attributeFactory);
      rf.setPartitionAttributes(attributeFactory.create());
    });
  }
convenience method to create a partition region with customized regionFactory and a customized
PartitionAttributeFactory

@param name the name of the region to create
@param regionFactoryConsumer a lamda that allows you to customize the regionFactory
@param attributesFactoryConsumer a lamda that allows you to customize the
       partitionAttributeFactory
@return a Partitioned Region
geode-dunit/src/main/java/org/apache/geode/test/junit/rules/MemberStarterRule.java