@Test
  public void testDeleteWithWhere() throws ParseException {
    ASTNode ast = parse("DELETE FROM src WHERE key IS NOT NULL AND src.value < 0");
    Assert.assertEquals("AST doesn't match",
      "(tok_delete_from " +
        "(tok_tabname src) " +
        "(tok_where " +
          "(and " +
            "(tok_function isnotnull (tok_table_or_col key)) " +
            "(< (. (tok_table_or_col src) value) 0))))",
      ast.toStringTree());
  }
various Parser tests for INSERT/UPDATE/DELETE
parser/src/test/org/apache/hadoop/hive/ql/parse/TestIUD.java