@Test
  public void testSelectStarFromAnonymousVirtTable1Row() throws ParseException {
    try {
      parse("select * from `values` (3,4)");
      Assert.assertFalse("Expected ParseException", true);
    }
    catch(ParseException ex) {
      Assert.assertEquals("Failure didn't match.",
          "line 1:24 cannot recognize input near 'values' '(' '3' in joinSource",
          ex.getMessage());
    }
  }
various Parser tests for INSERT/UPDATE/DELETE
parser/src/test/org/apache/hadoop/hive/ql/parse/TestIUD.java