public static void checkGatewayReceiverStats(int processBatches, int eventsReceived,
      int creates, boolean isExact) {
    Set<GatewayReceiver> gatewayReceivers = cache.getGatewayReceivers();
    GatewayReceiver receiver = gatewayReceivers.iterator().next();
    CacheServerStats stats = ((CacheServerImpl) receiver.getServer()).getAcceptor().getStats();

    assertThat(stats instanceof GatewayReceiverStats).isTrue();
    GatewayReceiverStats gatewayReceiverStats = (GatewayReceiverStats) stats;
    if (isExact) {
      assertThat(gatewayReceiverStats.getProcessBatchRequests() == processBatches).isTrue();
    } else {
      assertThat(gatewayReceiverStats.getProcessBatchRequests() >= processBatches).isTrue();
    }
    assertThat(gatewayReceiverStats.getEventsReceived()).isEqualTo(eventsReceived);
    assertThat(gatewayReceiverStats.getCreateRequest()).isEqualTo(creates);
  }
Returns a Map that contains the count for number of cache server and number of Receivers.
geode-wan/src/distributedTest/java/org/apache/geode/internal/cache/wan/WANTestBase.java