### Question:
LinkedMetadataManager { public boolean existsTable(String dbName, String schemaName, String tableName) { if (providerMap.containsKey(dbName)) { return providerMap.get(dbName).getTables(schemaName, tableName).contains(tableName); } return false; } LinkedMetadataManager(Collection<MetadataProvider> providers); Collection<String> getTablespaceNames(); Optional<Pair<String, URI>> getTablespace(final String spaceName); Collection<Pair<String, URI>> getTablespaces(); boolean existsTablespace(String tablespaceName); Collection<String> getDatabases(); boolean existsDatabase(String dbName); Collection<String> getSchemas(@Nullable String dbName); Collection<String> getTableNames(String dbName,
                                          @Nullable final String schemaPattern,
                                          @Nullable final String tablePattern); void createTable(TableDesc desc); void dropTable(String databaseName, String schemaName, String tableName); boolean existsTable(String dbName, String schemaName, String tableName); TableDesc getTable(String dbName, String schemaName, String tbName);  }### Answer:
@Test public void testExistsTable() throws Exception { assertTrue(catalog.existsTable("space1", "table1")); assertTrue(catalog.existsTable("space1", "table2")); assertTrue(catalog.existsTable("space2", "table3")); assertTrue(catalog.existsTable("space2", "table4")); }