resultMap.put("field_1:[* TO 5]", 5);
resultMap.put("field_1:[6 TO *]", 10);
Mockito.when(response.getFacetQuery()).thenReturn(resultMap);
List<FacetQueryEntry> result = ResultHelper.convertFacetQueryResponseToFacetQueryResult(
createFacetQuery(new SimpleQuery(new SimpleStringCriteria("field_1:[* TO 5]")), new SimpleQuery(
new SimpleStringCriteria("field_1:[6 TO *]"))), response);
Assert.assertNotNull(result);
Assert.assertEquals(2, result.size());
Assert.assertEquals(5, result.get(0).getValueCount());
Assert.assertEquals("field_1:[* TO 5]", result.get(0).getValue());