@@ -0,0 +1,1214 @@
+package annis.visualizers.component.tree;%0A%0Aimport static org.junit.jupiter.api.Assertions.assertEquals;%0Aimport static org.junit.jupiter.api.Assertions.assertNull;%0A%0Aimport java.util.LinkedHashSet;%0Aimport java.util.Set;%0Aimport org.corpus_tools.salt.SaltFactory;%0Aimport org.corpus_tools.salt.core.SAnnotation;%0Aimport org.junit.jupiter.api.Test;%0A%0Aclass AnnisGraphToolsTest %7B%0A%0A  @Test%0A  void extractAnnotation() %7B%0A    assertNull(AnnisGraphTools.extractAnnotation(null, %22some_ns%22, %22func%22));%0A%0A    Set%3CSAnnotation%3E annos = new LinkedHashSet%3C%3E();%0A    SAnnotation annoFunc = SaltFactory.createSAnnotation();%0A    annoFunc.setNamespace(%22some_ns%22);%0A    annoFunc.setName(%22func%22);%0A    annoFunc.setValue(%22value%22);%0A    annos.add(annoFunc);%0A%0A    assertEquals(%22value%22, AnnisGraphTools.extractAnnotation(annos, null, %22func%22));%0A    assertEquals(%22value%22, AnnisGraphTools.extractAnnotation(annos, %22some_ns%22, %22func%22));%0A%0A    assertNull(AnnisGraphTools.extractAnnotation(annos, %22another_ns%22, %22func%22));%0A    assertNull(AnnisGraphTools.extractAnnotation(annos, %22some_ns%22, %22anno%22));%0A    assertNull(AnnisGraphTools.extractAnnotation(annos, %22another_ns%22, %22anno%22));%0A    assertNull(AnnisGraphTools.extractAnnotation(annos, null, %22anno%22));%0A%0A%0A  %7D%0A%0A%7D%0A

Test AnnisGraphTools#extractAnnotation properly