@Test
public void concatenatesClassesWithoutCanonicalNamesWithStrings() {

    final Gauge<String> g = () -> null;
    assertThat(name(g.getClass(), "one", "two"))
            .matches("com\\.codahale\\.metrics\\.MetricRegistryTest.+?\\.one\\.two");
}