    @Test
    public void metricsListener_returns_null_object_if_no_metrics_reporters_are_enabled() {

        // given
        Config configNoReporters =
            TypesafeConfigUtil.loadConfigForAppIdAndEnvironment(APP_ID, "compiletimetest")
                              .withValue("metrics.slf4j.reporting.enabled", ConfigValueFactory.fromAnyRef(false))
                              .withValue("metrics.graphite.reporting.enabled", ConfigValueFactory.fromAnyRef(false))
                              .withValue("metrics.jmx.reporting.enabled", ConfigValueFactory.fromAnyRef(false));
        AppServerConfig asc = new AppServerConfig(configNoReporters);

        // when
        MetricsListener obj = asc.metricsListener();

        // then
        assertThat(obj).isNull();
    }