@Test
  public void partitionRegionConfigNodesMatchesRegionMembership() throws Exception {
    VM vm0 = Host.getHost(0).getVM(0);
    VM vm1 = Host.getHost(0).getVM(1);

    // Create PRs on only 2 VMs
    vm0.invoke(() -> createPartitionedRegion());
    vm1.invoke(() -> createPartitionedRegion());

    // Close all the PRs on vm2
    vm0.invoke(() -> getCache().close());

    vm1.invoke(() -> {
      Region prRootRegion = PartitionedRegionHelper.getPRRoot(getCache());

      await().untilAsserted(() -> {
        PartitionRegionConfig partitionRegionConfig =
            (PartitionRegionConfig) prRootRegion.get("#" + REGION_NAME);
        assertThat(partitionRegionConfig.getNodes()).hasSize(1);
      });
    });
  }
Test to verify the meta-data cleanUp done at the time of cache close Op.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/PartitionedRegionCacheCloseDUnitTest.java