public static void checkQueueStats(String senderId, final int queueSize, final int eventsReceived,
      final int eventsQueued, final int eventsDistributed) {
    GatewaySenderStats statistics = getGatewaySenderStats(senderId);
    await().untilAsserted(() -> {
      assertThat(statistics.getEventQueueSize()).isEqualTo(queueSize);
      assertThat(statistics.getEventsReceived()).isEqualTo(eventsReceived);
      assertThat(statistics.getEventsQueued()).isEqualTo(eventsQueued);
      assertThat(statistics.getEventsDistributed()).isGreaterThanOrEqualTo(eventsDistributed);
    });
  }
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