keywords.setKeywords(Arrays.asList(
new SimpleInternationalString("Apple"),
new SimpleInternationalString("Orange"),
new SimpleInternationalString("Kiwi")));
final DefaultDataIdentification identification = new DefaultDataIdentification();
identification.setDescriptiveKeywords(Collections.singleton(keywords));
identification.setTopicCategories(Arrays.asList(
TopicCategory.HEALTH,
TopicCategory.valueOf("OCEANS"), // Existing category
TopicCategory.valueOf("test"))); // Custom category
final String text = format.format(identification.asTreeTable());
assertMultilinesEquals(
"Data identification\n" +
" ├─Topic category (1 of 3)…… Health\n" +
" ├─Topic category (2 of 3)…… Oceans\n" +
" ├─Topic category (3 of 3)…… Test\n" +