public static boolean isSupportPrometheus() {
        return isClassPresent("io.micrometer.prometheus.PrometheusConfig")
                && isClassPresent("io.prometheus.client.exporter.BasicAuthHttpConnectionFactory")
                && isClassPresent("io.prometheus.client.exporter.HttpConnectionFactory")
                && isClassPresent("io.prometheus.client.exporter.PushGateway");
    }
@Test
    void isSupportPrometheus() {
        boolean supportPrometheus =
                new DefaultApplicationDeployer(ApplicationModel.defaultModel()).isSupportPrometheus();
        Assert.assertTrue(supportPrometheus, "DefaultApplicationDeployer.isSupportPrometheus() should return true");
    }