### Question:
GreedyCacheSqlFileRepository extends AbstractSqlFileRepository { @Override public void clearCache() { sqlFileMap.clear(); }  @Override void clearCache();  }### Answer:
@Test public void testClearCache() { StandardDialect dialect = new StandardDialect(); String path = "META-INF/" + getClass().getName().replace(".", "/") + ".sql"; GreedyCacheSqlFileRepository repository = new GreedyCacheSqlFileRepository(); SqlFile sqlFile = repository.getSqlFile(method, path, dialect); assertNotNull(sqlFile); repository.clearCache(); SqlFile sqlFile2 = repository.getSqlFile(method, path, dialect); assertNotSame(sqlFile, sqlFile2); assertEquals(path, sqlFile.getPath()); }