### Question:
FindSynonyms3 { public Set<String> getSynonyms(final String canonical) { Set<String> syn = Sets.newHashSet(); for (Map<String, Concept> lexica : lexicon) { for (String lexCanonical : lexica.keySet()) { Set<String> variants = lexica.get(lexCanonical).getVariants(); for (String variant : variants) { if (canonical.equals(variant)) { for (String v : variants) { syn.add(v.toLowerCase()); } } } } } return syn; } FindSynonyms3(); Set<String> getSynonyms(final String canonical);  }### Answer:
@Test public void test() throws Exception { FindSynonyms3 fs3 = new FindSynonyms3(); Set<String> s = fs3.getSynonyms("dentate gyrus"); System.out.println(join(s, "; ")); assertEquals(5, s.size()); s = fs3.getSynonyms("sublingual nucleus"); System.out.println(join(s, "; ")); assertTrue(s.contains("nucleus of roller")); s = fs3.getSynonyms("nucleus of Roller"); System.out.println(join(s, "; ")); assertTrue(s.contains("sublingual nucleus")); }