public void waitTillCacheClientProxyHasBeenPaused() {
    await().until(() -> {
      CacheClientNotifier clientNotifier = CacheClientNotifier.getInstance();
      Collection<CacheClientProxy> clientProxies = clientNotifier.getClientProxies();

      for (CacheClientProxy clientProxy : clientProxies) {
        if (clientProxy.isPaused()) {
          return true;
        }
      }
      return false;
    });
  }
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