@Override
    public void publishLong(MetricDescriptor descriptor, long value) {
        publishNumber(descriptor, value, LONG);
    }
@Test
    public void when_moreMetrics() throws Exception {
        jmxPublisher.publishLong(newDescriptor()
                .withMetric("c")
                .withTag("tag1", "a")
                .withTag("tag2", "b"), 1L);
        jmxPublisher.publishLong(newDescriptor()
                .withMetric("d")
                .withTag("tag1", "a")
                .withTag("tag2", "b"), 2L);
        jmxPublisher.publishLong(newDescriptor()
                .withMetric("d")
                .withTag("module", MODULE_NAME)
                .withTag("tag1", "a")
                .withTag("tag2", "b"), 5L);
        jmxPublisher.publishLong(newDescriptor()
                .withMetric("a")
                .withTag("tag1", "a")
                .withTag("tag2", "c"), 3L);
        jmxPublisher.publishLong(newDescriptor()
                .withMetric("a"), 4L);
        helper.assertMBeans(asList(
                metric(domainPrefix + ":type=Metrics,instance=inst1,tag0=\"tag1=a\",tag1=\"tag2=b\"",
                        asList(longValue("c", 1L), longValue("d", 2L))),
                metric(domainPrefix + "." + MODULE_NAME + ":type=Metrics,instance=inst1,tag0=\"tag1=a\",tag1=\"tag2=b\"",
                        singletonList(longValue("d", 5L))),
                metric(domainPrefix + ":type=Metrics,instance=inst1,tag0=\"tag1=a\",tag1=\"tag2=c\"",
                        singletonList(longValue("a", 3L))),
                metric(domainPrefix + ":type=Metrics,instance=inst1",
                        singletonList(longValue("a", 4L)))
        ));
    }