void assertThatExpirationOccurredInLocalMember(final Cache cache, final String regionName) {
      if (expirationAction().isInvalidate() || expirationAction().isLocalInvalidate()) {
        // verify region was invalidated
        Region<String, String> region = cache.getRegion(regionName);
        await()
            .untilAsserted(() -> assertThat(region.containsValueForKey(KEY)).isFalse());

      } else {
        // verify region was destroyed (or is in process of being destroyed)
        await().until(() -> isDestroyed(cache.getRegion(regionName)));
      }
    }
Test Region expiration - both time-to-live and idle timeout.

<p>
Note: See LocalRegionTest and MultiVMRegionTestCase for more expiration tests.

<p>
Single-JVM tests were extracted to RegionExpirationIntegrationTest.

@since GemFire 3.0
geode-core/src/distributedTest/java/org/apache/geode/cache/RegionExpirationDistributedTest.java