### Question:
DestructiveSource { public boolean tableExists() throws TException { try (CloseableMetaStoreClient client = sourceMetaStoreClientSupplier.get()) { return client.tableExists(databaseName, tableName); } } DestructiveSource(
      Supplier<CloseableMetaStoreClient> sourceMetaStoreClientSupplier,
      TableReplication tableReplication); boolean tableExists(); List<String> getPartitionNames();  }### Answer:
@Test public void tableExists() throws Exception { when(client.tableExists(DATABASE, TABLE)).thenReturn(true); DestructiveSource source = new DestructiveSource(sourceMetaStoreClientSupplier, tableReplication); assertThat(source.tableExists(), is(true)); verify(client).close(); }