@VisibleForTesting
  static List<Reporter> getReporters() {
    return self.reporters;
  }
@Test
  public void allReportersHiveConfig() throws Exception {
    String jsonFile = System.getProperty("java.io.tmpdir") + System.getProperty("file.separator") +
        "TestMetricsOutput.json";
    Configuration conf = MetastoreConf.newMetastoreConf();
    conf.set(MetastoreConf.ConfVars.HIVE_CODAHALE_METRICS_REPORTER_CLASSES.getHiveName(),
        "org.apache.hadoop.hive.common.metrics.metrics2.JsonFileMetricsReporter," +
            "org.apache.hadoop.hive.common.metrics.metrics2.JmxMetricsReporter," +
            "org.apache.hadoop.hive.common.metrics.metrics2.ConsoleMetricsReporter," +
            "org.apache.hadoop.hive.common.metrics.metrics2.Metrics2Reporter");
    MetastoreConf.setVar(conf, MetastoreConf.ConfVars.METRICS_JSON_FILE_LOCATION, jsonFile);

    initializeMetrics(conf);

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