@Test
  public void serialGatewaySenderShouldBeSuccessfullyAttachedToReplicateRegionTroughAttributesMutator() {
    Integer lnPort = vm0.invoke(() -> createFirstLocatorWithDSId(1));
    Integer nyPort = vm1.invoke(() -> createFirstRemoteLocator(2, lnPort));

    createCacheInVMs(nyPort, vm2);
    vm2.invoke(() -> {
      createReplicatedRegion(getTestMethodName() + "_RR", null, isOffHeap());
      createReceiver();
    });

    createCacheInVMs(lnPort, vm4, vm5, vm6, vm7);
    vm4.invoke(() -> {
      createSender("ln", 2, false, 100, 10, false, false, null, true);
      startSender("ln");
    });

    asList(vm4, vm5, vm6, vm7).forEach(vm -> vm.invoke(() -> {
      createReplicatedRegion(getTestMethodName() + "_RR", null, isOffHeap());
    }));

    asList(vm4, vm5, vm6, vm7).forEach(vm -> vm.invoke(() -> {
      addSenderThroughAttributesMutator(getTestMethodName() + "_RR", "ln");
    }));

    vm4.invoke(() -> {
      waitForSenderRunningState("ln");
      doPuts(getTestMethodName() + "_RR", 10);
    });

    vm2.invoke(() -> validateRegionSize(getTestMethodName() + "_RR", 10));
  }
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