### Question:
JedisPoolManager implements Managed { @Override public void stop() throws Exception { pool.destroy(); } JedisPoolManager(JedisPool pool); @Override void start(); @Override void stop();  }### Answer:
@Test public void destroysManagedPool() throws Exception { JedisPool pool = mock(JedisPool.class); JedisPoolManager manager = new JedisPoolManager(pool); manager.stop(); verify(pool).destroy(); }