protected SQLStatement parseAdd() {
        Lexer.SavePoint mark = lexer.mark();
        lexer.nextToken();

        if (lexer.identifierEquals("JAR")) {
            lexer.nextPath();
            String path = lexer.stringVal();
            HiveAddJarStatement stmt = new HiveAddJarStatement();
            stmt.setPath(path);
            lexer.nextToken();
            return stmt;
        }

        lexer.reset(mark);
        return null;
    }
@Test
    public void testAddJarStatement() {
        String s = "add jar hdfs:///hadoop/parser.h.file";
        HiveStatementParser hiveStatementParser = new HiveStatementParser(s);
        SQLStatement sqlStatement = hiveStatementParser.parseAdd();
        assertTrue(sqlStatement instanceof HiveAddJarStatement);
        assertEquals("ADD JAR hdfs:///hadoop/parser.h.file", sqlStatement.toString());
    }