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

    vm4.invoke(() -> {
      createReceiver();
      createCacheServer();
    });

    @SuppressWarnings("rawtypes")
    Map cacheServers = vm4.invoke(WANTestBase::getCacheServers);
    assertThat(cacheServers.get("BridgeServer"))
        .as("Cache.getCacheServers returned incorrect BridgeServers")
        .isEqualTo(1);
    assertThat(cacheServers.get("ReceiverServer"))
        .as("Cache.getCacheServers returned incorrect ReceiverServers")
        .isEqualTo(0);
  }
A single VM hosts a cache server as well as a Receiver.
Expected: Cache.getCacheServer should return only the cache server and not the Receiver.
geode-wan/src/distributedTest/java/org/apache/geode/internal/cache/wan/misc/WanValidationsDUnitTest.java