### Question:
HMSClient implements AutoCloseable { public 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(); HMSClient Clone(); boolean dbExists(@NotNull String dbName); boolean tableExists(@NotNull String dbName, @NotNull String tableName); Database getDatabase(@NotNull String dbName); Set<String> getAllDatabases(@Nullable String filter); Set<String> getAllTables(@NotNull String dbName, @Nullable String filter); List<Table> getTableObjects(@NotNull  String dbName, @NotNull List<String> tableNames); boolean createDatabase(@NotNull String name); boolean createDatabase(@NotNull String name,
                      @Nullable String description,
                      @Nullable String location,
                      @Nullable Map<String, String> params); boolean createDatabase(Database db); boolean dropDatabase(@NotNull String dbName); boolean createTable(Table table); boolean dropTable(@NotNull String dbName, @NotNull String tableName); Table getTable(@NotNull String dbName, @NotNull String tableName); Partition createPartition(@NotNull Table table, @NotNull List<String> values); Partition addPartition(@NotNull Partition partition); void addPartitions(List<Partition> partitions); List<Partition> listPartitions(@NotNull String dbName,
                                 @NotNull String tableName); Long getCurrentNotificationId(); List<String> getPartitionNames(@NotNull String dbName,
                                 @NotNull String tableName); boolean dropPartition(@NotNull String dbName, @NotNull String tableName,
                               @NotNull List<String> arguments); List<Partition> getPartitions(@NotNull String dbName, @NotNull String tableName); DropPartitionsResult dropPartitions(@NotNull String dbName, @NotNull String tableName,
                                      @Nullable List<String> partNames); List<Partition> getPartitionsByNames(@NotNull String dbName, @NotNull String tableName,
                                       @Nullable List<String>names); boolean alterTable(@NotNull String dbName, @NotNull String tableName, @NotNull Table newTable); void alterPartition(@NotNull String dbName, @NotNull String tableName,
      @NotNull Partition partition); void alterPartitions(@NotNull String dbName, @NotNull String tableName,
      @NotNull List<Partition> partitions); void appendPartition(@NotNull String dbName, @NotNull String tableName,
      @NotNull List<String> partitionValues); @Override void close();  }### Answer:
@Test public void dropNonExistingDb() { Throwable exception = assertThrows(NoSuchObjectException.class, () -> client.dropDatabase("WhatIsThisDatabase")); }