@Test
public void sanitizesMetricName() throws Exception {

    Counter counter = registry.counter("dash-illegal.slash/illegal");
    counter.inc();
    reporter.report();
    ValueList values = receiver.next();
    assertThat(values.getPlugin()).isEqualTo("dash_illegal.slash_illegal");
}