StatsOptions capturedOptions = captor.getValue().getStatsOptions();
Assert.assertEquals(2, capturedOptions.getFields().size());
Assert.assertTrue(capturedOptions.getFields().containsAll(
Arrays.asList(new SimpleField("field1"), new SimpleField("field4"))));
Assert.assertEquals(2, capturedOptions.getFacets().size());
Assert.assertTrue(capturedOptions.getFacets().containsAll(
Arrays.asList(new SimpleField("field2"), new SimpleField("field3"))));
Collection<Field> selectiveFacetsField = capturedOptions.getSelectiveFacets().get(new SimpleField("field4"));
List<SimpleField> selectiveFacetsFields = Arrays.asList(new SimpleField("field4_1"), new SimpleField("field4_2"));
Assert.assertEquals(1, capturedOptions.getSelectiveFacets().size());
Assert.assertTrue(selectiveFacetsField.containsAll(selectiveFacetsFields));
}