import com.alibaba.druid.sql.dialect.db2.visitor.DB2OutputVisitor;
public class DB2Test extends TestCase {
protected String output(List<SQLStatement> stmtList) {
StringBuilder out = new StringBuilder();
DB2OutputVisitor visitor = new DB2OutputVisitor(out);
for (SQLStatement stmt : stmtList) {
stmt.accept(visitor);
}