### Question:
JedisFactory implements Factory<Jedis> { @Override public Jedis provide() { return pool.getResource(); } JedisFactory(JedisPool pool); @Override Jedis provide(); @Override void dispose(Jedis jedis);  }### Answer:
@Test public void providesAJedisClientInstance() { assertThat(factory.provide()).isInstanceOf(Jedis.class); verify(pool).getResource(); }