Mockito.when(response.getFacetPivot()).thenReturn(pivotData);
Map<PivotField, List<FacetPivotFieldEntry>> result = ResultHelper.convertFacetQueryResponseToFacetPivotMap(
createFacetPivotQuery("field_1", "field_2"), response);
List<FacetPivotFieldEntry> resultPivot = result.get(new SimplePivotField("field_1", "field_2"));
Assert.assertNotNull(result);
Assert.assertEquals(2, resultPivot.size());
Assert.assertNotNull(resultPivot.get(0));
Assert.assertEquals("value_1", resultPivot.get(0).getValue());