@Test
public void shouldReturnResourceToThePoolOnCloseAndStayConnected() {

  //given
  JedisPool pool = new TracingJedisPool(new TracingConfiguration.Builder(mockTracer).build());
  Jedis resource = pool.getResource();
  assertTrue(resource.isConnected());
  //when
  resource.close();
  //then - valid resource should not be destroyed but returned to pool & stay connected for at least {@link BaseGenericObjectPool#getMinEvictableIdleTimeMillis()}
  assertTrue(resource.isConnected());
}