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