private void generateStatsString(int k, ReplStatsTracker repl) {
    DumpType[] types = DumpType.values();
    for (DumpType type : types) {
      for (int i = 0; i < k; i++) {
        int eventId = 1000000 + i * type.ordinal();
        repl.addEntry(type.toString(), Integer.toString(eventId), 10000 + i + ( i * 1234));
      }
    }
  }
Unit Test class for In Memory Replication Metric Collection.
ql/src/test/org/apache/hadoop/hive/ql/parse/repl/metric/TestReplicationMetricCollector.java