oneOf(jedis).type(key); will(returnValue(KeyType.STRING.toString()));
oneOf(jedis).strlen(key); will(returnValue(size));
oneOf(jedis).get(key); will(returnValue(value));
oneOf(pool).returnResource(jedis);
}});
final KeyInfo keyInfo = this.keysDAO.getKeyInfo(key, 0, 1);
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());
Assert.assertNotNull(keyInfo.getArrayValue());
Assert.assertEquals(1, keyInfo.getArrayValue().size());
Assert.assertEquals(value, keyInfo.getArrayValue().get(0));
}