### Question:
AwsCmdbMetadataHandler extends MetadataHandler { @Override public ListSchemasResponse doListSchemaNames(BlockAllocator blockAllocator, ListSchemasRequest listSchemasRequest) { return new ListSchemasResponse(listSchemasRequest.getCatalogName(), schemas.keySet()); } 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 doListSchemaNames() { ListSchemasRequest request = new ListSchemasRequest(identity, queryId, catalog); ListSchemasResponse response = handler.doListSchemaNames(blockAllocator, request); assertEquals(2, response.getSchemas().size()); assertTrue(response.getSchemas().contains("schema1")); assertTrue(response.getSchemas().contains("schema2")); }