@Test
  public void testInvalidShowTables() throws SQLException {
    Statement stmt = con.createStatement();
    assertNotNull("Statement is null", stmt);

    //show tables <dbname> is in invalid show tables syntax. Hive does not return
    //any tables in this case
    ResultSet res = stmt.executeQuery("show tables " + testDbName);
    assertFalse(res.next());
    stmt.close();
  }
Execute "set x" and extract value from key=val format result
Verify the extracted value
@param key
@param expectedVal
@throws Exception
itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcDriver2.java