@Test(expected = MetaException.class)
  public void testAlterTableNullStorageDescriptorInNew() throws Exception {
    Table originalTable = testTables[0];
    Table newTable = originalTable.deepCopy();
    newTable.setSd(null);

    client.alter_table(originalTable.getDbName(), originalTable.getTableName(), newTable);
  }
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