@Test
  public void testUpdateNoWhereSingleSet() throws ParseException {
    ASTNode ast = parse("UPDATE src set key = 3");
    Assert.assertEquals("AST doesn't match",
      "(tok_update_table " +
        "(tok_tabname src) " +
        "(tok_set_columns_clause " +
          "(= " +
            "(tok_table_or_col key) 3)))",
      ast.toStringTree());
  }
various Parser tests for INSERT/UPDATE/DELETE
parser/src/test/org/apache/hadoop/hive/ql/parse/TestIUD.java