final KeyDAOPoolWork work = new KeyDAOPoolWork(key);
this.mockCtx.checking(new Expectations(){{
oneOf(jedis).type(key); will(returnValue(KeyType.STRING.toString()));
oneOf(jedis).strlen(key); will(returnValue(size));
}});
final KeyInfo keyInfo = work.doWork(this.jedis);
Assert.assertNotNull(keyInfo);
Assert.assertEquals("foo", keyInfo.getNamespace());
Assert.assertEquals("bar", keyInfo.getName());
Assert.assertEquals(KeyType.STRING, keyInfo.getType());
Assert.assertEquals((Long) size, keyInfo.getSize());