public class PerpetualCacheTest {
@Test
public void shouldDemonstrateHowAllObjectsAreKept() {
Cache cache = new PerpetualCache("default");
cache = new SynchronizedCache(cache);
for (int i = 0; i < 100000; i++) {
cache.putObject(i, i);
assertEquals(i, cache.getObject(i));
}
assertEquals(100000, cache.getSize());
}