### Question:
SqlParserServiceImpl implements SqlParserService { @Override public List<SqlCreateView> sqlViewParser(String viewSql) throws Exception { List<SqlCreateView> result = new LinkedList<>(); SqlNodeList nodeList = SqlUtils.parseSql(viewSql); for (SqlNode sqlNode : nodeList) { if (sqlNode instanceof SqlCreateView) { result.add((SqlCreateView) 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 sqlViewParserTest() throws Exception { String view = "create view view_select as " + "SELECT " + "`date`, " + "amount " + "FROM " + "kafak_source " + "group by `date`,amount;"; List<SqlCreateView> list = service.sqlViewParser(view); Assert.assertEquals(list.size(), 1); }