@Test
public void evict() throws IOException {

  TemplateSource source = createMock(TemplateSource.class);
  @SuppressWarnings("unchecked")
  ConcurrentMap<TemplateSource, Future<Pair<TemplateSource, Template>>> cache = createMock(
      ConcurrentMap.class);
  expect(cache.remove(source)).andReturn(null);
  replay(cache, source);
  new HighConcurrencyTemplateCache(cache).evict(source);
  verify(cache, source);
}