@Test
  public void gatewayEventFiltersShouldBeConsistentAcrossMembers() {
    Integer lnPort = vm0.invoke(() -> createFirstLocatorWithDSId(1));
    createCacheInVMs(lnPort, vm1, vm2);

    List<GatewayEventFilter> eventFilters = new ArrayList<>();
    eventFilters.add(new MyGatewayEventFilter());
    vm1.invoke(() -> createSenderForValidations("ln", 2, false, 100, false, false, eventFilters,
        null, true, false));

    eventFilters.clear();
    eventFilters.add(new Filter70());
    vm2.invoke(() -> {
      assertThatThrownBy(() -> createSenderForValidations("ln", 2, false, 100, false, false,
          eventFilters, null, true, false))
              .isInstanceOf(IllegalStateException.class)
              .hasMessageContaining(
                  "because another cache has the same Gateway Sender defined with GatewayEventFilters");

    });
  }
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