PoolMetrics implements Metrics { String statName(String statName) { return "pool_" + pool.name + '_' + statName; } PoolMetrics(Pool<?> pool); @Override void collect(Stats stats);  }
@Test void statName() { assertThat(metrics.statName("size")).isEqualTo("pool_test_size"); }