public static void checkStats_Failover(String senderId, final int eventsReceived) {
    GatewaySenderStats statistics = getGatewaySenderStats(senderId);
    await().untilAsserted(() -> {
      assertThat(statistics.getEventsReceived()).isEqualTo(eventsReceived);
      assertThat((statistics.getEventsQueued() + statistics.getUnprocessedTokensAddedByPrimary()
          + statistics.getUnprocessedEventsRemovedByPrimary())).isEqualTo(eventsReceived);
    });
  }
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