@After
  public void after() throws Exception {
    MetricsFactory.close();
  }
Unit test for the RatioGauge implementation.
standalone-metastore/metastore-common/src/test/java/org/apache/hadoop/hive/common/metrics/metrics2/TestMetricVariableRatioGauge.java