return 2048;
}
@Test
public void addAndRetrieve() {
CacheStore cache = new CacheStore(1, CacheStore.KB(4), 1);
cache.put("test1", new DummyPojo("test1", fixedSize()));
logger.debug("put test1 " + cache.toString());
cache.put("test2", new DummyPojo("test2", fixedSize()));
logger.debug("put test2 " + cache.toString());
cache.put("test3", new DummyPojo("test3", fixedSize()));
logger.debug("put test3 " + cache.toString());
logger.debug("ask for test1 " + cache.toString());
DummyPojo pojo1 = (DummyPojo)cache.get("test1");
logger.debug("got test1 " + cache.toString());
DummyPojo pojo2 = (DummyPojo)cache.get("test2");
logger.debug("got test2 " + cache.toString());
DummyPojo pojo3 = (DummyPojo)cache.get("test3");
logger.debug("got test3 " + cache.toString());
assertNotNull(pojo1);
assertEquals("test1", pojo1.name);
assertNotNull(pojo2);
assertEquals("test2", pojo2.name);
assertNotNull(pojo3);
assertEquals("test3", pojo3.name);
logger.debug("addAndRetrieve " + cache.toString());
cache.reset();
}