@Test
void response_is_aggregation_when_aggregation_not_empty() {

  when(esResponse.getAggregations()).thenReturn(aggregations);
  ElasticsearchResponse response = new ElasticsearchResponse(esResponse, factory);
  assertTrue(response.isAggregationResponse());
}