public static void checkBatchStats(String senderId, final int batches,
      boolean isExact, final boolean batchesRedistributed) {
    GatewaySenderStats statistics = getGatewaySenderStats(senderId);
    await().untilAsserted(() -> {
      if (isExact) {
        assertThat(statistics.getBatchesDistributed()).isEqualTo(batches);
      } else {
        assertThat(statistics.getBatchesDistributed()).isGreaterThanOrEqualTo(batches);
      }
      assertThat((statistics.getBatchesRedistributed() > 0)).isEqualTo(batchesRedistributed);
    });
  }
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