@Before
  public void setUp() {
    cache = new CacheFactory().set(LOCATORS, "").set(MCAST_PORT, "0").create();

    PartitionAttributesFactory paf = new PartitionAttributesFactory();
    paf.setRecoveryDelay(-1);
    paf.setRedundantCopies(1);
    paf.setStartupRecoveryDelay(-1);

    attributesFactory = new AttributesFactory();
    attributesFactory.setPartitionAttributes(paf.create());
    attributesFactory.setStatisticsEnabled(true);
  }
PRWithLocalExpirationRegressionTest

TRAC #40632: PR expiration with localDestroy fails with InternalGemFireError
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/CreatePRWithLocalExpirationRegressionTest.java