@Override
  public void close() {
    try {
      restHighLevelClient.close();
    } catch (IOException e) {
      throw new ElasticsearchException("Could not close ES Rest high level client", e);
    }
  }
@Test
  public void should_close_client() throws IOException {
    underTest.close();
    verify(restClient).close();
  }