@Test
  public void getAllTables() throws TException {
    try {
      client.createTable(TEST_TABLE);
      assertThat(client.getAllTables(TEST_DATABASE, null), Matchers.contains(TEST_TABLE_NAME));
    } catch (Exception e) {
      System.out.println(e.getMessage());
      e.printStackTrace();
    } finally {
      client.dropTable(TEST_DATABASE, TEST_TABLE_NAME);
    }
  }
Verify that dropping for non-existing database throws
NoSuchObjectException
standalone-metastore/metastore-tools/tools-common/src/test/java/org/apache/hadoop/hive/metastore/tools/HMSClientTest.java