// facet field
Map<String, StatsResult> facetStatsResult = facetStatsResults.get("facetField");
Assert.assertNotNull(facetStatsResult);
// facet values
StatsResult facetValue1StatsResult = facetStatsResult.get("value1");
Assert.assertEquals("f1v1min", facetValue1StatsResult.getMin());
Assert.assertEquals("f1v1max", facetValue1StatsResult.getMax());
Assert.assertEquals(Double.valueOf(110), facetValue1StatsResult.getSum());
Assert.assertEquals(Double.valueOf(113), facetValue1StatsResult.getMean());
Assert.assertEquals(Long.valueOf(111), facetValue1StatsResult.getCount());
Assert.assertEquals(Long.valueOf(112), facetValue1StatsResult.getMissing());
Assert.assertEquals(Double.valueOf(11.3), facetValue1StatsResult.getStddev());
StatsResult facetValue2StatsResult = facetStatsResult.get("value2");
Assert.assertEquals("f1v2min", facetValue2StatsResult.getMin());
Assert.assertEquals("f1v2max", facetValue2StatsResult.getMax());
Assert.assertEquals(Double.valueOf(120), facetValue2StatsResult.getSum());
Assert.assertEquals(Double.valueOf(123), facetValue2StatsResult.getMean());
Assert.assertEquals(Long.valueOf(121), facetValue2StatsResult.getCount());
Assert.assertEquals(Long.valueOf(122), facetValue2StatsResult.getMissing());
Assert.assertEquals(Double.valueOf(12.3), facetValue2StatsResult.getStddev());
}