@Test
public void metricsPrefixBackwardCompatible() throws Exception {

    iqtp.doStart();
    verify(metricRegistry, atLeastOnce()).register(metricNameCaptor.capture(), any(Metric.class));
    String metricName = metricNameCaptor.getValue();
    assertThat(metricName)
            .overridingErrorMessage("The default metrics prefix was changed")
            .startsWith(QueuedThreadPool.class.getName());
}