public static void checkUnProcessedStats(String senderId, int events) {
    GatewaySenderStats statistics = getGatewaySenderStats(senderId);
    await().untilAsserted(() -> {
      assertThat((statistics.getUnprocessedEventsAddedBySecondary()
          + statistics.getUnprocessedTokensRemovedBySecondary())).isEqualTo(events);
      assertThat((statistics.getUnprocessedEventsRemovedByPrimary()
          + statistics.getUnprocessedTokensAddedByPrimary())).isEqualTo(events);
    });
  }
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