@Test
    public void testNegative() {
      try {
        parse(String.format("CREATE TABLE %s (col STRING)", keyword));
        Assert.fail("Expected ParseException");
      } catch (ParseException ex) {
        Assert.assertEquals("Failure didn't match.", String
            .format("line 1:13 cannot recognize input near '%s' '(' 'col' in table name", keyword),
            ex.getMessage());
      }
    }
Parser tests for SQL11 Reserved KeyWords. Please find more information in HIVE-6617.
parser/src/test/org/apache/hadoop/hive/ql/parse/TestSQL11ReservedKeyWordsNegative.java