@Test
public void autoDiscoversTheMXBeans() {

    final ThreadStatesGaugeSet set = new ThreadStatesGaugeSet();
    assertThat(((Gauge<?>) set.getMetrics().get("count")).getValue())
        .isNotNull();
    assertThat(((Gauge<?>) set.getMetrics().get("deadlocks")).getValue())
        .isNotNull();
}