### Question:
AwsCmdbMetadataHandler extends MetadataHandler { @Override public GetTableResponse doGetTable(BlockAllocator blockAllocator, GetTableRequest getTableRequest) { TableProvider tableProvider = tableProviders.get(getTableRequest.getTableName()); if (tableProvider == null) { throw new RuntimeException("Unknown table " + getTableRequest.getTableName()); } return tableProvider.getTable(blockAllocator, getTableRequest); } 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 doGetTable() { GetTableRequest request = new GetTableRequest(identity, queryId, catalog, new TableName("schema1", "table1")); when(mockTableProvider1.getTable(eq(blockAllocator), eq(request))).thenReturn(mock(GetTableResponse.class)); GetTableResponse response = handler.doGetTable(blockAllocator, request); assertNotNull(response); verify(mockTableProvider1, times(1)).getTable(eq(blockAllocator), eq(request)); }