@Test
  public void testMetadataQueriesWithSerializeThriftInTasks() throws Exception {
    Statement stmt = conTestDb.createStatement();
    setSerializeInTasksInConf(stmt);
    ResultSet rs = stmt.executeQuery("show tables");
    assertTrue(rs.next());
    stmt.execute("describe " + tableName);
    stmt.execute("explain select * from " + tableName);
    // Note: by closing stmt object, we are also reverting any session specific config changes.
    stmt.close();
  }
This method tests whether while creating a new connection, the config
variables specified in the JDBC URI are properly set for the connection.
This is a test for HiveConnection#configureConnection.

@throws Exception
itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcWithMiniHS2.java