code: public static void resetAllCounters() {
      for (Map.Entry<String, Counter> entry : METRIC_REGISTRY.getCounters().entrySet()) {
        entry.getValue().dec(entry.getValue().getCount());
      }
    }
docs: Resets all the counters to 0 for testing.