@Test
  public void parallelGatewaySenderAssociationToReplicateRegionTroughAttributesMutatorShouldFail() {
    IgnoredException.addIgnoredException("could not get remote locator information");
    Integer lnPort = vm0.invoke(() -> createFirstLocatorWithDSId(1));

    createCacheInVMs(lnPort, vm1);
    String regionName = getTestMethodName() + "_RR";
    String gatewaySenderId = getTestMethodName() + "_gateway";
    vm1.invoke(() -> {
      createReplicatedRegion(regionName, null, isOffHeap());
      createSender(gatewaySenderId, 2, true, 100, 10, false, false, null, false);

      assertThatThrownBy(() -> addSenderThroughAttributesMutator(regionName, gatewaySenderId))
          .isInstanceOf(GatewaySenderConfigurationException.class)
          .hasMessage("Parallel Gateway Sender " + gatewaySenderId
              + " can not be used with replicated region " + SEPARATOR + regionName);
    });
  }
Two VMs are part of the DS. One VM hosts a cache server while the other hosts a Receiver.
Expected: Cache.getCacheServers should only return the bridge server and not the Receiver.
geode-wan/src/distributedTest/java/org/apache/geode/internal/cache/wan/misc/WanValidationsDUnitTest.java