public MetricsBuilder histogram(HistogramConfig histogram) {
        this.histogram = histogram;
        return getThis();
    }
@Test
    void histogram() {
        HistogramConfig histogram = new HistogramConfig();
        histogram.setEnabled(true);
        histogram.setMaxExpectedMs(1000);
        histogram.setBucketsMs(new Integer[] {100, 200, 300, 400, 500});
        histogram.setPercentiles(new double[] {0.5, 0.9, 0.95, 0.99});

        MetricsBuilder builder = MetricsBuilder.newBuilder();
        builder.histogram(histogram);

        Assertions.assertSame(histogram, builder.build().getHistogram());
        Assertions.assertTrue(builder.build().getHistogram().getEnabled());
        Assertions.assertEquals(1000, builder.build().getHistogram().getMaxExpectedMs());
        Assertions.assertArrayEquals(
                new Integer[] {100, 200, 300, 400, 500},
                builder.build().getHistogram().getBucketsMs());
        Assertions.assertArrayEquals(
                new double[] {0.5, 0.9, 0.95, 0.99},
                builder.build().getHistogram().getPercentiles());
    }