FacetNameFormatter implements Formatter { @Override public Element buildDimensionTag(int count) { return new Element(dimension.getLabel()); } FacetNameFormatter(Dimension dimension); @Override Element buildDimensionTag(int count); @Override Element buildCategoryTag(CategorySummary result);  }
@Test public void testBuildDimensionTag() throws JDOMException { Element dimensionTag = formatter.buildDimensionTag(6); assertEquals("keywords", dimensionTag.getName()); assertEquals(0, dimensionTag.getContent().size()); assertEquals(0, dimensionTag.getAttributes().size()); }