### Question:
SqlParserServiceImpl implements SqlParserService { @Override public List<SqlCreateFunction> sqlFunctionParser(String funSql) throws Exception { List<SqlCreateFunction> result = new LinkedList<>(); SqlNodeList nodeList = SqlUtils.parseSql(funSql); for (SqlNode sqlNode : nodeList) { if (sqlNode instanceof SqlCreateFunction) { result.add((SqlCreateFunction) sqlNode); } } return result; }  @Override List<SqlCreateFunction> sqlFunctionParser(String funSql); @Override List<SqlCreateTable> sqlTableParser(String ddlSql); @Override List<SqlCreateView> sqlViewParser(String viewSql); @Override List<RichSqlInsert> sqlDmlParser(String insertSql);  }### Answer:
@Test public void sqlFunctionParserTest() throws Exception { String fun = "create temporary function function1 as 'org.apache.fink.function.function1' language java"; List<SqlCreateFunction> list = service.sqlFunctionParser(fun); Assert.assertEquals(list.size(), 1); }