### Question:
ElasticsearchMetadataEngine extends CommonsMetadataEngine<Client> { @Override @TimerJ protected void dropCatalog(CatalogName name, Connection<Client> connection) throws UnsupportedException, ExecutionException { DeleteIndexResponse delete = null; delete = recoveredClient(connection).admin().indices().delete(new DeleteIndexRequest(name.getName())) .actionGet(); if (!delete.isAcknowledged()) { throw new ExecutionException("dropCatalog request has not been acknowledged"); } } ElasticsearchMetadataEngine(ConnectionHandler connectionHandler);   }### Answer:
@Test public void testDropCatalog() throws Exception { ActionFuture<DeleteIndexResponse> actionFuture = createActionFuture(false, true); elasticsearchMetadataEngine.dropCatalog(new ClusterName(CLUSTER_NAME), new CatalogName(INDEX_NAME)); verify(actionFuture, times(1)).actionGet(); }
@Test(expected = ExecutionException.class) public void testDropCatalogException() throws Exception { createActionFuture(false, false); elasticsearchMetadataEngine.dropCatalog(new ClusterName(CLUSTER_NAME), new CatalogName(INDEX_NAME)); }