### Question:
AbstractSqlFileRepository implements SqlFileRepository { @Override public final SqlFile getSqlFile(Method method, String path, Dialect dialect) { if (method == null) { throw new DomaNullPointerException("method"); } if (path == null) { throw new DomaNullPointerException("path"); } if (!method.isAnnotationPresent(Sql.class)) { if (!path.startsWith(Constants.SQL_PATH_PREFIX)) { throw new DomaIllegalArgumentException( "path", "The path does not start with '" + Constants.SQL_PATH_PREFIX + "'"); } if (!path.endsWith(Constants.SQL_PATH_SUFFIX)) { throw new DomaIllegalArgumentException( "path", "The path does not end with '" + Constants.SQL_PATH_SUFFIX + "'"); } } if (dialect == null) { throw new DomaNullPointerException("dialect"); } return getSqlFileWithCacheControl(method, path, dialect); }  @Override final SqlFile getSqlFile(Method method, String path, Dialect dialect);  }### Answer:
@Test public void testGetSqlFile(TestInfo testInfo) { SqlFileRepository repository = new MySqlFileRepository(); Method method = testInfo.getTestMethod().get(); String path = String.format("META-INF/%s.sql", getClass().getName().replace(".", "/")); Dialect dialect = new StandardDialect(); SqlFile sqlFile = repository.getSqlFile(method, path, dialect); assertEquals("select * from employee", sqlFile.getSql()); }
@Test public void testGetSqlFile_illegalPath(TestInfo testInfo) { SqlFileRepository repository = new MySqlFileRepository(); Method method = testInfo.getTestMethod().get(); String path = method.getName(); Dialect dialect = new StandardDialect(); try { repository.getSqlFile(method, path, dialect); fail(); } catch (DomaIllegalArgumentException ignored) { } }