@Test
public void testGetAllCounters() throws Exception {

    target.i(TaggingLabels.ITEM);
    target.i(TaggingLabels.OTHER);
    final Map<String, Map<String, Long>> allCounters = target.getAllCounters();
    assertThat(allCounters.size(), is(1));
    final Map<String, Long> stringLongMap = allCounters.get("org.grobid.core.engines.label.TaggingLabelImpl");
    assertThat(stringLongMap.size(), is(2));
    assertThat(stringLongMap.get(TaggingLabels.OTHER.getName()), is(1l));
    assertThat(stringLongMap.get(TaggingLabels.ITEM.getName()), is(1l));
}