@Override
    public void publishLong(MetricDescriptor descriptor, long value) {
        publishNumber(descriptor, value, LONG);
    }
@Test
    public void when_singleMetricWithPrefixAndDiscriminator() throws Exception {
        MetricDescriptor descriptor = newDescriptor()
                .withPrefix("d")
                .withMetric("c")
                .withDiscriminator("name", "itsName")
                .withTag("tag1", "a")
                .withTag("tag2", "b");
        jmxPublisher.publishLong(descriptor, 1L);
        helper.assertMBeans(singletonList(
                metric(domainPrefix
                                + ":type=Metrics,instance=inst1,prefix=d,tag0=\"tag1=a\",tag1=\"tag2=b\",tag2=\"name=itsName\"",
                        singletonList(longValue("c", 1L)))));
    }