private void validateContainsAPIForPartitionRegion() {
    Cache cache = getCache();
    Region<String, String> region = cache.getRegion(TEST_REGION);

    for (int i = startIndexForKey; i < endIndexForKey; i++) {
      Object value = region.get(TEST_REGION + i);
      if (i >= startIndexForDestroy && i < endIndexForDestroy) {
        assertThat(value).isNull();
      } else {
        assertThat(value).isNotNull();
        assertThat(value).isEqualTo(TEST_REGION + i);
        assertThat(region).containsValue(TEST_REGION + i);
      }
    }

    // containsKey
    for (int i = startIndexForKey; i < endIndexForKey; i++) {
      boolean containsKey = region.containsKey(TEST_REGION + i);
      if (i >= startIndexForDestroy && i < endIndexForDestroy) {
        assertThat(containsKey).isFalse();
      } else {
        assertThat(containsKey).isTrue();
      }
    }

    // containsValueForKey
    for (int i = startIndexForKey; i < endIndexForKey; i++) {
      boolean containsValueForKey = region.containsValueForKey(TEST_REGION + i);
      if (i >= startIndexForDestroy && i < endIndexForDestroy) {
        assertThat(containsValueForKey).isFalse();
      } else {
        assertThat(containsValueForKey).isTrue();
      }
    }

    // containsValue
    for (int i = startIndexForKey; i < endIndexForKey; i++) {
      boolean containsValue = region.containsValue(TEST_REGION + i);
      if (i >= startIndexForDestroy && i < endIndexForDestroy) {
        assertThat(containsValue).isFalse();
      } else {
        assertThat(containsValue).isTrue();
      }
    }
  }
This test performs following operations:<br>

1. Create multiple Partition Regions in 4 VMs<br>

2. Performs put()operations on all the partitioned region from all the VM's<br>

3. Performs destroy(key)operations for some of the keys of all the partitioned region from all
the VM's<br>

4. Checks containsKey and ContainsValueForKey APIs
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/PartitionedRegionMultipleDUnitTest.java