@Test
public void testUnableToEvict() throws InterruptedException, IOException
{

    final int CACHE_SIZE = 10;
    ImmutableItemCache<Id, Item> cache = new ImmutableItemCache<>(CACHE_SIZE);
    // Load cache and mark everything non-evictable
    int id = 0;
    while (id < CACHE_SIZE) {
        Item item = cache.find(id(id), ITEM_READER);
        item.okToEvict(false);
        id++;
    }
    try {
        cache.find(id(CACHE_SIZE), ITEM_READER);
        fail();
    } catch (ImmutableItemCacheError e) {
    }
}