private InternalRegion createRegion(String name) {
    RegionFactory<String, String> rf = cache.createRegionFactory(RegionShortcut.REPLICATE);
    rf.setStatisticsEnabled(true);

    System.setProperty(LocalRegion.EXPIRY_MS_PROPERTY, "true");
    try {
      return (InternalRegion) rf.create(name);
    } finally {
      System.clearProperty(LocalRegion.EXPIRY_MS_PROPERTY);
    }
  }
Tests transaction expiration functionality

@since GemFire 4.0
geode-core/src/integrationTest/java/org/apache/geode/TXExpirationIntegrationTest.java