@Deprecated
    public PrometheusMeterRegistry getPrometheusRegistry() {
        return prometheusRegistry;
    }
@Test
    void testJvmMetrics() {
        metricsConfig.setEnableJvm(true);
        String name = "metrics-test";
        ApplicationModel.defaultModel().getApplicationConfigManager().setApplication(new ApplicationConfig(name));

        PrometheusMetricsReporter reporter = new PrometheusMetricsReporter(metricsConfig.toUrl(), applicationModel);
        reporter.init();

        PrometheusMeterRegistry prometheusRegistry = reporter.getPrometheusRegistry();
        Double d1 = prometheusRegistry.getPrometheusRegistry().getSampleValue("none_exist_metric");
        Double d2 = prometheusRegistry
                .getPrometheusRegistry()
                .getSampleValue(
                        "jvm_gc_memory_promoted_bytes_total", new String[] {"application_name"}, new String[] {name});
        Assertions.assertNull(d1);
        Assertions.assertNull(d2);
    }