@Test
  public void testFetchSize() throws Exception {
    Connection fsConn = getConnection(miniHS2.getJdbcURL("default", "fetchSize=50", ""),
      System.getProperty("user.name"), "bar");
    Statement stmt = fsConn.createStatement();
    stmt.execute("set");
    assertEquals(50, stmt.getFetchSize());
    stmt.close();
    fsConn.close();
  }
Tests ADD JAR uses Hives ReflectionUtil.CONSTRUCTOR_CACHE

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