private void validateGetAndContainsInAll() {
    for (int vm = 0; vm < 4; vm++) {
      getHost(0).getVM(vm).invoke(() -> {
        Cache cache = getCache();
        Region<String, String> region = cache.getRegion(regionName);

        // get
        for (int i = putRange_1Start; i <= putRange_4End; i++) {
          String value = region.get(Integer.toString(i));
          if ((i >= removeRange_1Start && i <= removeRange_1End)
              || (i >= removeRange_2Start && i <= removeRange_2End)) {
            assertThat(value).isNull();
          } else {
            assertThat(value).isNotNull();
          }
        }

        // containsKey
        for (int i = putRange_1Start; i <= putRange_4End; i++) {
          boolean containsKey = region.containsKey(Integer.toString(i));
          if ((i >= removeRange_1Start && i <= removeRange_1End)
              || (i >= removeRange_2Start && i <= removeRange_2End)) {
            assertThat(containsKey).isFalse();
          } else {
            assertThat(containsKey).isTrue();
          }
        }

        // containsValueForKey
        for (int i = putRange_1Start; i <= putRange_4End; i++) {
          boolean containsValueForKey = region.containsValueForKey(Integer.toString(i));
          if ((i >= removeRange_1Start && i <= removeRange_1End)
              || (i >= removeRange_2Start && i <= removeRange_2End)) {
            assertThat(containsValueForKey).isFalse();
          } else {
            assertThat(containsValueForKey).isTrue();
          }
        }
      });
    }
  }
This is a PartitionedRegion test for scope = D_ACK. 4 VMs are used to create the PR with and
without(Only Accessor) the DataStore.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/PartitionedRegionAPIDUnitTest.java