@Override
    public void publishLong(MetricDescriptor descriptor, long value) {
        publishNumber(descriptor, value, LONG);
    }
@Test
    public void when_double_rendering_values_are_reported() {
        MetricDescriptor descriptor1 = newDescriptor()
                .withMetric("c")
                .withTag("tag1", "a")
                .withTag("tag2", "b");
        jmxPublisher.publishLong(descriptor1, 1L);

        MetricDescriptor descriptor2 = newDescriptor()
                .withMetric("c")
                .withTag("tag1", "a")
                .withTag("tag2", "b");

        AssertionError assertionError = assertThrows(AssertionError.class, () -> jmxPublisher.publishLong(descriptor2, 2L));
        assertTrue(assertionError.getMessage().contains("[metric=c,tag1=a,tag2=b,excludedTargets={}]"));
        assertTrue(assertionError.getMessage().contains("Present value: 1, new value: 2"));
    }