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