TermLabel extends AbstractTerm { @Override public List<CategoryPath> classify(String value) { if (hasUriFor(value)) { return classifyUri(getUriFor(value)); } else { return new ArrayList<>(); } } TermLabel(ThesaurusFinder finder, String conceptScheme, String langCode); void setIndexLabel(boolean indexLabel); @Override List<CategoryPath> classify(String value);  }
@Test public void testMultiLevelClassification() { List<CategoryPath> testTermHierarchy = termLabelClassifier.classify("sea surface temperature"); assertCategoryListEquals(testTermHierarchy, "http: }
@Test public void testWithTermWithTwoBroaderTerms() { List<CategoryPath> testTermHierarchy = termLabelClassifier.classify("air sea flux"); assertCategoryListEquals(testTermHierarchy, "http: }
@Test public void testWithUnknownTerm() { List<CategoryPath> testTermHierarchy = termLabelClassifier.classify("unkown term"); assertEquals(0, testTermHierarchy.size()); }