private static void createTable() throws ClassNotFoundException, SQLException {
    Class.forName(BeeLine.BEELINE_DEFAULT_JDBC_DRIVER);
    Connection con = DriverManager.getConnection(miniHS2.getBaseJdbcURL(), "", "");

    assertNotNull("Connection is null", con);
    assertFalse("Connection should not be closed", con.isClosed());
    Statement stmt = con.createStatement();
    assertNotNull("Statement is null", stmt);

    stmt.execute("set hive.support.concurrency = false");
    try {
      stmt.execute("drop table if exists " + tableName);
    } catch (Exception ex) {
      LOG.error("Failed due to exception ", ex);
      fail("Unable to create setup table " + tableName + ex.toString());
    }
    // create table
    stmt.execute("create table " + tableName
        + " (under_col int comment 'the under column', value string) comment '" + tableComment
        + "'");
  }
Create table for use by tests

@throws ClassNotFoundException
@throws SQLException
itests/hive-unit/src/test/java/org/apache/hive/beeline/TestBeelinePasswordOption.java