public CacheServerMXBean getCacheServerMXBean(String serverName, int serverPort) {
    SystemManagementService managementService = (SystemManagementService) getManagementService();
    String objectName = MessageFormat.format(OBJECTNAME__CLIENTSERVICE_MXBEAN,
        String.valueOf(serverPort), serverName);
    ObjectName cacheServerMBeanName = MBeanJMXAdapter.getObjectName(objectName);
    return managementService.getMBeanProxy(cacheServerMBeanName, CacheServerMXBean.class);
  }
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