ConcurrentMapTemplateCache implements TemplateCache { @Override public void evict(final TemplateSource source) { cache.remove(source); } protected  ConcurrentMapTemplateCache(
      final ConcurrentMap<TemplateSource, Pair<TemplateSource, Template>> cache);  ConcurrentMapTemplateCache(); @Override void clear(); @Override void evict(final TemplateSource source); @Override Template get(final TemplateSource source, final Parser parser); @Override ConcurrentMapTemplateCache setReload(final boolean reload);  }
@Test public void evict() throws IOException { TemplateSource source = createMock(TemplateSource.class); @SuppressWarnings("unchecked") ConcurrentMap<TemplateSource, Pair<TemplateSource, Template>> cache = createMock( ConcurrentMap.class); expect(cache.remove(source)).andReturn(null); replay(cache, source); new ConcurrentMapTemplateCache(cache).evict(source); verify(cache, source); }