@Test
  public void partitionRegionCreationShouldFailWhenParallelGatewaySenderIdsAreDifferentAcrossMembers() {
    Integer lnPort = vm0.invoke(() -> createFirstLocatorWithDSId(1));
    createCacheInVMs(lnPort, vm4, vm5);

    vm4.invoke(() -> {
      createSender("ln1", 2, true, 10, 100, false, false, null, true);
      createSender("ln2", 2, true, 10, 100, false, false, null, true);
    });

    vm5.invoke(() -> {
      createSender("ln2", 2, true, 10, 100, false, false, null, true);
      createSender("ln3", 2, true, 10, 100, false, false, null, true);
    });

    vm4.invoke(
        () -> createPartitionedRegion(getTestMethodName() + "_PR", "ln1,ln2", 1, 100, isOffHeap()));
    vm5.invoke(() -> {
      assertThatThrownBy(() -> createPartitionedRegion(getTestMethodName() + "_PR", "ln2,ln3", 1,
          100, isOffHeap()))
              .isInstanceOf(IllegalStateException.class)
              .hasMessageContaining("Cannot create Region");
    });
  }
Test to make sure that parallel sender Ids configured in partitioned regions should be same
across all PR members
geode-wan/src/distributedTest/java/org/apache/geode/internal/cache/wan/misc/WanValidationsDUnitTest.java