Properties prop = sel.getSelectionProperties();
PathFacetHandler.setDepth(prop, 1);
PathFacetHandler.setStrict(prop, true);
br.addSelection(sel);
FacetSpec pathSpec=new FacetSpec();
pathSpec.setMaxCount(3);
pathSpec.setOrderBy(FacetSortSpec.OrderHitsDesc);
br.setFacetSpec("path", pathSpec);
HashMap<String,List<BrowseFacet>> answer=new HashMap<String,List<BrowseFacet>>();
answer=new HashMap<String,List<BrowseFacet>>();
answer.put("path", Arrays.asList(new BrowseFacet[]{new BrowseFacet("a-c-d",2),new BrowseFacet("a-e-f",1)}));
doTest(br,3,answer,null);
pathSpec.setOrderBy(FacetSortSpec.OrderByCustom);
pathSpec.setCustomComparatorFactory(new ComparatorFactory(){
public IntComparator newComparator(
FieldValueAccessor fieldValueAccessor, final int[] counts) {
return new IntComparator(){