@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());
  }
  @Test
  public void testBuildCategoryTag() {
    CategorySummary result = new CategorySummary();
    result.value = "oceans";
    result.label = "Oceans";
    result.count = 3;

    Element categoryTag = formatter.buildCategoryTag(result);

    assertEquals("keyword", categoryTag.getName());
    assertEquals(0, categoryTag.getContent().size());
    assertEquals(3, categoryTag.getAttributes().size());
    assertEquals("oceans", categoryTag.getAttributeValue("name"));
    assertEquals("Oceans", categoryTag.getAttributeValue("label"));
    assertEquals("3", categoryTag.getAttributeValue("count"));
  }