public static void doTxPuts(String regionName, int numPuts) {
    try (
        IgnoredException ignored = addIgnoredException(InterruptedException.class);
        IgnoredException ignored1 =
            addIgnoredException(GatewaySenderException.class)) {
      Region<Object, Object> r = cache.getRegion(SEPARATOR + regionName);
      for (long i = 0; i < numPuts; i++) {
        cache.getCacheTransactionManager().begin();
        r.put(i, "Value_" + i);
        cache.getCacheTransactionManager().commit();
      }
    }
  }
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