public static String serialize(Object obj) throws JsonProcessingException {
        return MAPPER.writeValueAsString(obj);
    }
@Test
    void serializeHistogram() throws JsonProcessingException {
        DHistogram h =
                new DHistogram(new TestHistogram(), METRIC, HOST, tags, () -> MOCKED_SYSTEM_MILLIS);

        DSeries series = new DSeries();
        h.addTo(series);

        assertSerialization(
                DatadogHttpClient.serialize(series),
                new MetricAssertion(MetricType.gauge, true, "4.0", DHistogram.SUFFIX_AVG),
                new MetricAssertion(MetricType.gauge, true, "1", DHistogram.SUFFIX_COUNT),
                new MetricAssertion(MetricType.gauge, true, "0.5", DHistogram.SUFFIX_MEDIAN),
                new MetricAssertion(
                        MetricType.gauge, true, "0.95", DHistogram.SUFFIX_95_PERCENTILE),
                new MetricAssertion(MetricType.gauge, true, "7", DHistogram.SUFFIX_MIN),
                new MetricAssertion(MetricType.gauge, true, "6", DHistogram.SUFFIX_MAX));
    }