@Test
public void clear() throws IOException {

  @SuppressWarnings("unchecked")
  Cache<TemplateSource, Template> cache = createMock(Cache.class);
  cache.invalidateAll();
  replay(cache);
  new GuavaTemplateCache(cache).clear();
  verify(cache);
}