public MetricsConfig getMetrics() {
        return metrics;
    }
@Test
    public void testMetricsConfig() {
        ShenyuConfig.MetricsConfig metrics = config.getMetrics();
        metrics.setPort(123);
        metrics.setEnabled(true);
        metrics.setName("test");
        metrics.setHost("test");
        metrics.setJmxConfig("jmxConfig");
        metrics.setProps(new Properties());

        boolean enabled = metrics.getEnabled();
    
        assertTrue(enabled, "result not excepted");
        String jmxConfig = metrics.getJmxConfig();
        Properties props = metrics.getProps();
        String host = metrics.getHost();
        String name = metrics.getName();
        Integer port = metrics.getPort();

        notEmptyElements(jmxConfig, props, host, name, port);
    }