@Test
  public void testMetaDataGetSchemas() throws SQLException {
    ResultSet rs = con.getMetaData().getSchemas();
    ResultSetMetaData resMeta = rs.getMetaData();
    assertEquals(2, resMeta.getColumnCount());
    assertEquals("TABLE_SCHEM", resMeta.getColumnName(1));
    assertEquals("TABLE_CATALOG", resMeta.getColumnName(2));

    assertTrue(rs.next());
    assertEquals("default", rs.getString(1));
    assertTrue(rs.next());
    assertEquals(testDbName, rs.getString(1));

    assertFalse(rs.next());
    rs.close();
  }
Test the type returned for pre-created table type table and view type table
@param tableTypeNames expected table types
@param viewTypeName expected view type
@throws SQLException
itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcDriver2.java