@Before
  public void setUp() throws Exception {
    hs2Conn = DriverManager.getConnection(miniHS2.getJdbcURL(dbName),
        System.getProperty("user.name"), "bar");
    stmt = hs2Conn.createStatement();
    stmt.execute("USE " + dbName);
  }
This class is cloned from TestJdbcWithMiniMR, except use Namenode HA.
itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcWithMiniHA.java