this.mockCtx.checking(new Expectations(){{
oneOf(jedis).type(key); will(returnValue(KeyType.ZSET.toString()));
oneOf(jedis).zcard(key); will(returnValue(size));
oneOf(jedis).zrange(key, offset, offset + count); will(returnValue(value));
}});
final KeyInfo keyInfo = work.doWork(this.jedis);
Assert.assertNotNull(keyInfo);
Assert.assertEquals("foo", keyInfo.getNamespace());
Assert.assertEquals("bar", keyInfo.getName());
Assert.assertEquals(KeyType.ZSET, keyInfo.getType());
Assert.assertEquals((Long) size, keyInfo.getSize());