public static Map<OrderId, Order> updateOrderPartitionedRegion(int numPuts) {
    Map<OrderId, Order> orderKeyValues = new HashMap<>();
    for (int i = 1; i <= numPuts; i++) {
      CustId custid = new CustId(i);
      int oid = i + 1;
      OrderId orderId = new OrderId(oid, custid);
      Order order = new Order("ORDER" + oid + "_update");
      try {
        orderRegion.put(orderId, order);
        orderKeyValues.put(orderId, order);
        assertThat(orderRegion.containsKey(orderId)).isTrue();
        assertThat(orderRegion.get(orderId)).isEqualTo(order);

      } catch (Exception e) {
        fail(
            "updateOrderPartitionedRegion : failed while doing put operation in OrderPartitionedRegion ",
            e);
      }
      logger.info("Order :- { " + orderId + " : " + order + " }");
    }
    return orderKeyValues;
  }
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