### Question:
HMSClient implements AutoCloseable { Set<String> getAllTables(@NotNull String dbName, @Nullable String filter) throws TException { if (filter == null || filter.isEmpty()) { return new HashSet<>(client.get_all_tables(dbName)); } return client.get_all_tables(dbName) .stream() .filter(n -> n.matches(filter)) .collect(Collectors.toSet()); } 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 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); } }