long mySize = 0;
Iterator<ICacheEntry> iter = entries.values().iterator();
while (iter.hasNext()) {
ICacheEntry entry = iter.next();
if (!entry.expired()) {
DummyObject dummy = (DummyObject) cache.get(entry.getKey());
assertNotNull(dummy);
assertEquals(entry.getKey(), dummy.getName());
}
mySize+=entry.size();
}
logger.debug("**** computed size is: " + mySize);
logger.debug(cache.toString());
}