@After
  public void finalize() {
    MetricCollector.getInstance().deinit();
    metricSinkMockedStatic.close();
  }
Unit Test class for In Memory Replication Metric Collection.
ql/src/test/org/apache/hadoop/hive/ql/parse/repl/metric/TestReplicationMetricCollector.java