### Question:
HMSClient implements AutoCloseable { boolean dropDatabase(@NotNull String dbName) throws TException { client.drop_database(dbName, true, true); return true; } HMSClient(@Nullable URI uri);   HMSClient(@Nullable URI uri, @Nullable String confDir); URI getServerURI(); @Override String toString(); boolean dropPartition(@NotNull String dbName, @NotNull String tableName,
                               @NotNull List<String> arguments); @Override void close();  }### Answer:
@Test public void dropNonExistingDb() { Throwable exception = Assertions.assertThrows(NoSuchObjectException.class, () -> client.dropDatabase("WhatIsThisDatabase")); }