RetrieveGolrAnnotations extends AbstractRetrieveGolr { public List<GolrAnnotationDocument> getGolrAnnotationsForSynonym(String source, String synonym) throws IOException { return getGolrAnnotationsForSynonym(source, Collections.singletonList(synonym)); } RetrieveGolrAnnotations(String server);  RetrieveGolrAnnotations(String server, int retryCount, boolean ignoreC16ParseErrors); GafDocument convert(List<GolrAnnotationDocument> golrAnnotationDocuments); void convert(List<GolrAnnotationDocument> golrAnnotationDocuments, Map<String, Bioentity> entities, GafDocument document); List<GolrAnnotationDocument> getGolrAnnotationsForGenes(List<String> ids); List<GolrAnnotationDocument> getGolrAnnotationsForGenes(List<String> ids, boolean noIEAs); List<GolrAnnotationDocument> getGolrAnnotationsForGene(String id); List<GolrAnnotationDocument> getGolrAnnotationsForSynonym(String source, String synonym); List<GolrAnnotationDocument> getGolrAnnotationsForSynonym(String source, List<String> synonyms); List<GolrAnnotationDocument> getGolrAnnotationsForSynonym(String source, List<String> synonyms, boolean noIEAs); List<GolrAnnotationDocument> getGolrAnnotations(List<String []> tagvalues);  }
@Test public void testGetGolrAnnotationsForSynonym() throws Exception { RetrieveGolrAnnotations retriever = new RetrieveGolrAnnotations("http: @Override protected void logRequest(URI uri) { System.out.println(uri); } }; List<GolrAnnotationDocument> annotations = retriever.getGolrAnnotationsForSynonym( "TAIR", Collections.singletonList("AT1G12520"), true); assertNotNull(annotations); for (GolrAnnotationDocument document : annotations) { System.out.println(document.bioentity+" "+document.annotation_class+" "+document.evidence_type); } System.out.println(annotations.size()); }