### Question:
SqlFileExecutorImpl implements SqlFileExecutor { public boolean isTarget(DatabaseDesc databaseDesc, File file) { if (databaseDesc == null || file == null) { return false; } return isTarget(databaseDesc, file, ".sql") || isTarget(databaseDesc, file, ".ddl"); } SqlFileExecutorImpl(GenDialect dialect, String sqlFileEncoding,
            char statementDelimiter, String blockDelimiter); void execute(SqlExecutionContext context, File sqlFile); boolean isTarget(DatabaseDesc databaseDesc, File file);  }### Answer:
@Test public void testIsTarget() throws Exception { SqlFileExecutorImpl executor = new SqlFileExecutorImpl( new StandardGenDialect(), "UTF-8", ';', null); TableDesc tableDesc = new TableDesc(); tableDesc.setCanonicalName("aaa.bbb.ccc"); DatabaseDesc databaseDesc = new DatabaseDesc(); databaseDesc.addTableDesc(tableDesc); File match = new File("aaa.bbb.ccc.sql"); File unmatch = new File("xxx.sql"); assertTrue(executor.isTarget(databaseDesc, match)); assertTrue(executor.isTarget(databaseDesc, unmatch)); databaseDesc.setFiltered(true); assertTrue(executor.isTarget(databaseDesc, match)); assertFalse(executor.isTarget(databaseDesc, unmatch)); }