@Test
void response_isnot_aggregation_when_aggregation_is_empty() {

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