@Test
public void hasAGaugeForEachThreadState() {

    assertThat(((Gauge<?>) gauges.getMetrics().get("new.count")).getValue())
        .isEqualTo(1);
    assertThat(((Gauge<?>) gauges.getMetrics().get("runnable.count")).getValue())
        .isEqualTo(1);
    assertThat(((Gauge<?>) gauges.getMetrics().get("blocked.count")).getValue())
        .isEqualTo(1);
    assertThat(((Gauge<?>) gauges.getMetrics().get("waiting.count")).getValue())
        .isEqualTo(1);
    assertThat(((Gauge<?>) gauges.getMetrics().get("timed_waiting.count")).getValue())
        .isEqualTo(1);
    assertThat(((Gauge<?>) gauges.getMetrics().get("terminated.count")).getValue())
        .isEqualTo(1);
}