@Test
  public void getNonExistingDb() {
    Throwable exception = Assertions.assertThrows(NoSuchObjectException.class,
        () -> client.getDatabase("WhatIsThisDatabase"));
  }
Verify that searching for non-existing database throws
NoSuchObjectException
standalone-metastore/metastore-tools/tools-common/src/test/java/org/apache/hadoop/hive/metastore/tools/HMSClientTest.java