@VisibleForTesting
  static List<Reporter> getReporters() {
    return self.reporters;
  }
@Test
  public void allReportersOldHiveConfig() throws Exception {
    String jsonFile = System.getProperty("java.io.tmpdir") + System.getProperty("file.separator") +
        "TestMetricsOutput.json";
    Configuration conf = MetastoreConf.newMetastoreConf();
    conf.set(MetastoreConf.ConfVars.HIVE_METRICS_REPORTER.getHiveName(),
        "JSON_FILE,JMX,CONSOLE,HADOOP2");
    MetastoreConf.setVar(conf, MetastoreConf.ConfVars.METRICS_JSON_FILE_LOCATION, jsonFile);

    initializeMetrics(conf);

    Assert.assertEquals(4, Metrics.getReporters().size());
  }