@Test
  public void testJoinThriftSerializeInTasks() throws Exception {
    Statement stmt = conTestDb.createStatement();
    setSerializeInTasksInConf(stmt);
    stmt.execute("drop table if exists testThriftJoinOrders");
    stmt.execute("drop table if exists testThriftJoinCustomers");
    stmt.execute("create table testThriftJoinOrders (orderid int, orderdate string, customerid int)");
    stmt.execute("create table testThriftJoinCustomers (customerid int, customername string, customercountry string)");
    stmt.execute("insert into testThriftJoinOrders values (1, '2015-09-09', 123), (2, '2015-10-10', 246), "
        + "(3, '2015-11-11', 356)");
    stmt.execute("insert into testThriftJoinCustomers values (123, 'David', 'America'), "
        + "(246, 'John', 'Canada'), (356, 'Mary', 'CostaRica')");
    ResultSet joinResultSet =
        stmt.executeQuery("select testThriftJoinOrders.orderid, testThriftJoinCustomers.customername "
            + "from testThriftJoinOrders inner join testThriftJoinCustomers where "
            + "testThriftJoinOrders.customerid=testThriftJoinCustomers.customerid");
    Map<Integer, String> expectedResult = new HashMap<Integer, String>();
    expectedResult.put(1, "David");
    expectedResult.put(2, "John");
    expectedResult.put(3, "Mary");
    for (int i = 1; i < 4; i++) {
      assertTrue(joinResultSet.next());
      assertEquals(joinResultSet.getString(2), expectedResult.get(i));
    }
    stmt.execute("drop table testThriftJoinOrders");
    stmt.execute("drop table testThriftJoinCustomers");
    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