@Test
public void testGetNestedTagTagIndexSearchResponseDtoSearchResultParameter()
{

    SearchResponse searchResponse = mock(SearchResponse.class);
    Aggregations aggregations = mock(Aggregations.class);
    Nested nested = mock(Nested.class);
    Aggregations nestedAggregations = mock(Aggregations.class);
    Terms terms = mock(Terms.class);
    when(searchResponse.getAggregations()).thenReturn(aggregations);
    when(aggregations.get(TAG_FACET_AGGS)).thenReturn(nested);
    when(nested.getAggregations()).thenReturn(nestedAggregations);
    when(nestedAggregations.get(TAGTYPE_CODE_AGGREGATION)).thenReturn(terms);
    when(terms.getBuckets()).thenReturn(new ArrayList<>());
    List<TagTypeIndexSearchResponseDto> result = elasticsearchHelper.getNestedTagTagIndexSearchResponseDto(searchResponse);
    assertThat("Result is null.", result, is(notNullValue()));
}