private Table getNewTable() throws MetaException {
    return new TableBuilder()
               .setTableName("test_table_with_invalid_sd")
               .addCol("test_col", "int")
               .build(metaStore.getConf());
  }
This test creates and queries a table and then drops it. Good for testing the happy path
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestTablesCreateDropAlterTruncate.java