### Question:
DictionaryManager { public static SyntaxDictionary getDictionaryByVersion(String versionkey) { if (dictionaryConfig == null) throw new IllegalArgumentException("Problem loading dictionaryconfig.xml"); Node versionNode = dictionaryConfig.getElementById(versionkey); if (versionNode == null) { return null; } String dicttype = versionNode.getParentNode().getAttributes().getNamedItem("id").getNodeValue(); SyntaxDictionary dic = null; if (dicttype.equals(CFDIC_KEY)) { dic = new SQLSyntaxDictionary(); String sqlwords = dictionaryConfig.getElementById(SQLDIC_KEY).getFirstChild().getFirstChild() .getAttributes().getNamedItem("location").getNodeValue(); try { ((SQLSyntaxDictionary) dic).loadKeywords(new URL(getDictionaryLocation(sqlwords))); } catch (MalformedURLException e) { throw new IllegalArgumentException("Problem loading version node " + sqlwords + " from dictionaryconfig.xml"); } } else if (dicttype.equals(JSDIC_KEY)) { dic = new JSSyntaxDictionary(); } else if (dicttype.equals(HTDIC_KEY)) { dic = new HTMLSyntaxDictionary(); } NodeList grammars = versionNode.getChildNodes(); byte nlen = (byte) grammars.getLength(); Node n = null; for (byte z = 0; z < nlen; z++) { n = grammars.item(z); String filename = n.getAttributes().getNamedItem("location").getNodeValue().trim(); dic.loadDictionary(getDictionaryLocation(filename)); } return dic; } private  DictionaryManager(DictionaryPreferences prefs); static void initDictionaries(); static void initDictionaries(DictionaryPreferences prefs); static String getFirstVersion(String forDictionary); static String[][] getConfiguredDictionaries(); static void loadDictionaryByVersion(String versionkey); static SyntaxDictionary getDictionaryByVersionAlt(String versionkey); static SyntaxDictionary getDictionaryByVersion(String versionkey); static synchronized void loadDictionaryFromCache(String cachekey, String livekey); static void addDictionaryToCache(String key, SyntaxDictionary sd); static void addDictionary(String key, SyntaxDictionary sd); static SyntaxDictionary getDictionary(String key); static Map getDictionaries(); static Map getDictionariesCache(); static void setDictionariesCache(Map dictionariesCache); static String DICTIONARY_DIR; static String CF_DICTIONARY; static final String CFDIC_KEY; static final String JSDIC_KEY; static final String SQLDIC_KEY; static final String HTDIC_KEY; }### Answer:
@Ignore @Test public void testGetDictionaryByVersion() { DictionaryManager.initDictionaries(); SyntaxDictionary fun = DictionaryManager.getDictionaryByVersion(fPrefs.getCFDictionary()); System.err.println(fun.dictionaryURL); Set wee = fun.getAllTags(); assertNotNull(fun); }