public Metric(final MetricType type, final String name, final String document, final List<String> labels) {
        this.type = type;
        this.name = name;
        this.document = document;
        this.labels = labels;
    }
@Test
    public void testMetric() {
        labels = new ArrayList<>();
        labels.add("shenyu_request_total");
        metric = new Metric(MetricType.COUNTER, NAME, DOCUMENT, labels);
        Assertions.assertEquals(metric.getType(), MetricType.COUNTER);
        Assertions.assertEquals(metric.getName(), "testName");
        Assertions.assertEquals(metric.getDocument(), "testDocument");
        Assertions.assertEquals(metric.getLabels().get(0), "shenyu_request_total");
    }