@Test
public void clear() throws IOException {

  @SuppressWarnings("unchecked")
  ConcurrentMap<TemplateSource, Pair<TemplateSource, Template>> cache = createMock(
      ConcurrentMap.class);
  cache.clear();
  replay(cache);
  new ConcurrentMapTemplateCache(cache).clear();
  verify(cache);
}