@Test
  public void testCreateAndGetTableWithDriver() throws Exception {
    String dbName = "createDb";
    String tblName = "createTbl";

    client.dropTable(dbName, tblName);
    silentDropDatabase(dbName);
    new DatabaseBuilder()
        .setName(dbName)
        .create(client, conf);

    createTable(dbName, tblName);
    Table tblRead = client.getTable(dbName, tblName);
    Assert.assertTrue(tblRead.isSetId());
    long firstTableId = tblRead.getId();

    createTable(dbName, tblName + "_2");
    Table tblRead2 = client.getTable(dbName, tblName + "_2");
    Assert.assertTrue(tblRead2.isSetId());
    Assert.assertNotEquals(firstTableId, tblRead2.getId());
  }
tests create table and partition and tries to drop the table without
droppping the partition
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java