### Question:
SqlParserServiceImpl implements SqlParserService { @Override public List<RichSqlInsert> sqlDmlParser(String insertSql) throws Exception { List<RichSqlInsert> result = new LinkedList<>(); SqlNodeList nodeList = SqlUtils.parseSql(insertSql); for (SqlNode sqlNode : nodeList) { if (sqlNode instanceof RichSqlInsert) { result.add((RichSqlInsert) 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 sqlDmlParserTest() throws Exception { String insert = "insert into emp(x,y) partition (x='ab', y='bc') select * from emp"; List<RichSqlInsert> list = service.sqlDmlParser(insert); Assert.assertEquals(list.size(), 1); }