### Question:
AwsCmdbMetadataHandler extends MetadataHandler { @Override public ListTablesResponse doListTables(BlockAllocator blockAllocator, ListTablesRequest listTablesRequest) { return new ListTablesResponse(listTablesRequest.getCatalogName(), schemas.get(listTablesRequest.getSchemaName())); } AwsCmdbMetadataHandler(); @VisibleForTesting protected  AwsCmdbMetadataHandler(TableProviderFactory tableProviderFactory,
            EncryptionKeyFactory keyFactory,
            AWSSecretsManager secretsManager,
            AmazonAthena athena,
            String spillBucket,
            String spillPrefix); @Override ListSchemasResponse doListSchemaNames(BlockAllocator blockAllocator, ListSchemasRequest listSchemasRequest); @Override ListTablesResponse doListTables(BlockAllocator blockAllocator, ListTablesRequest listTablesRequest); @Override GetTableResponse doGetTable(BlockAllocator blockAllocator, GetTableRequest getTableRequest); @Override void enhancePartitionSchema(SchemaBuilder partitionSchemaBuilder, GetTableLayoutRequest request); @Override void getPartitions(BlockWriter blockWriter, GetTableLayoutRequest request, QueryStatusChecker queryStatusChecker); @Override GetSplitsResponse doGetSplits(BlockAllocator blockAllocator, GetSplitsRequest getSplitsRequest);  }### Answer:
@Test public void doListTables() { ListTablesRequest request = new ListTablesRequest(identity, queryId, catalog, "schema1"); ListTablesResponse response = handler.doListTables(blockAllocator, request); assertEquals(2, response.getTables().size()); assertTrue(response.getTables().contains(new TableName("schema1", "table1"))); assertTrue(response.getTables().contains(new TableName("schema1", "table2"))); }