### Question:
JedisFactory implements Factory<Jedis> { @Override public void dispose(Jedis jedis) { jedis.close(); } JedisFactory(JedisPool pool); @Override Jedis provide(); @Override void dispose(Jedis jedis);  }### Answer:
@Test public void disposesAJedisConnectionProperly() { factory.dispose(jedis); verify(jedis).close(); }