@Test
public void testClosingTracedJedisClosesUnderlyingJedis() {

  JedisPool pool = new TracingJedisPool(new TracingConfiguration.Builder(mockTracer).build());
  Jedis resource = pool.getResource();
  assertEquals(1, pool.getNumActive());
  resource.close();
  assertEquals(0, pool.getNumActive());
  assertEquals(1, pool.getNumIdle());
  // ensure that resource is reused
  Jedis nextResource = pool.getResource();
  assertEquals(1, pool.getNumActive());
  assertEquals(0, pool.getNumIdle());
  nextResource.close();
}