* Method test1Put10000GetsSameKey10Puts
*/
public void test1Put10000GetsSameKey2Puts()
{
Cache cache = newCache(1000 * 60, 2);
cache.addObject("x", "x");
cache.addObject("y", "y");
for (int i = 0; i < 10000; i++)
{
assertNotNull(cache.getObject("x"));
assertNotNull(cache.getObject("y"));
}
assertEquals(2, cache.size());
cache.addObject("a", "a");
cache.addObject("b", "b");
assertEquals(2, cache.size());
assertNotNull(cache.getObject("b"));
}