public static <K> Map<String, List<K>> checkPR(String regionName) {
    PartitionedRegion region = (PartitionedRegion) cache.getRegion(regionName);
    @SuppressWarnings("unchecked")
    QueueListener<K, ?> listener = (QueueListener<K, ?>) region.getCacheListener();

    HashMap<String, List<K>> listenerAttrs = new HashMap<>();
    listenerAttrs.put("Create", listener.createList);
    listenerAttrs.put("Update", listener.updateList);
    listenerAttrs.put("Destroy", listener.destroyList);
    return listenerAttrs;
  }
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