private PartitionedRegion createPartitionedRegion(final String regionName,
      final int localMaxMemory, final int redundancy) {
    PartitionAttributes pa = createPartitionAttributes(localMaxMemory, redundancy);
    return createPartitionedRegion(regionName, pa);
  }
TODO: extract to IntegrationTest with RegressionTest suffix
<p>
TODO: this test has nothing to do with PartitionedRegions. Move it to a FunctionService test
<p>
TRAC #41832: Function execution should throw Exceptions when any configuration is not valid
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/execute/PRFunctionExecutionWithResultSenderDUnitTest.java