### Question:
DictionaryManager implements IDictionaryManager, ILoadableManager { @Override public synchronized IDictionaryStructure getDictionary(SailfishURI uri) throws RuntimeException { IDictionaryStructure dict = SailfishURIUtils.getMatchingValue(uri, dicts, SailfishURIRule.REQUIRE_RESOURCE); if (dict == null) { this.dictLoadedCounter++; dictionaryIds.put(uri, dictLoadedCounter); String resource = SailfishURIUtils.getMatchingValue(uri, location, SailfishURIRule.REQUIRE_RESOURCE); if (resource == null) { throw new RuntimeException("No dictionary found for URI: " + uri); } dict = createMessageDictionary(resource); if (dict == null) { throw new RuntimeException("Can not create dictionary for URI: " + uri +", resource = "+resource); } dicts.put(uri, dict); logger.info("Dictionary {} was loaded", uri); } return dict; } DictionaryManager(IWorkspaceDispatcher workspaceDispatcher, UtilityManager utilityManager); @Override synchronized Set<SailfishURI> getDictionaryURIs(); @Override synchronized Set<SailfishURI> getDictionaryURIs(String pluginAlias); @Override synchronized List<SailfishURI> getCachedDictURIs(); @Override synchronized Map<SailfishURI, String> getDictionaryLocations(); @Override void load(ILoadableManagerContext context); @Override void finalize(ILoadableManagerContext context); @Override synchronized IDictionaryStructure getDictionary(SailfishURI uri); @Override synchronized DictionarySettings getSettings(SailfishURI uri); @Override synchronized IMessageFactory getMessageFactory(SailfishURI uri); @Override String toString(); @Override synchronized void invalidateDictionaries(SailfishURI ... uris); @Override IDictionaryStructure createMessageDictionary(String pathName); @Override IMessageFactory createMessageFactory(); @Override UtilityInfo getUtilityInfo(SailfishURI dictionaryURI, SailfishURI utilityURI, Class<?>... argTypes); @Override UtilityInfo getUtilityInfo(SailfishURI dictionaryURI, SailfishURI utilityURI, long line, long uid, String column, AlertCollector alertCollector, Class<?>... argTypes); @Override Set<SailfishURI> getUtilityURIs(SailfishURI dictionaryURI); @Override long getDictionaryId(SailfishURI uri); @Override void subscribeForEvents(IDictionaryManagerListener listener); @Override void unSubscribeForEvents(IDictionaryManagerListener listener); void invalidateEvent(Set<SailfishURI> uris); void createEvent(SailfishURI uri); @Override IDictionaryRegistrator registerDictionary(String title, boolean overwrite);  }### Answer:
@Test public void testLoadDictionaries() throws FileNotFoundException, WorkspaceSecurityException { IDictionaryManager manager = SFLocalContext.getDefault().getDictionaryManager(); IDictionaryStructure dict = manager.getDictionary(SailfishURI.unsafeParse("Example")); Assert.assertNotNull(dict); Assert.assertEquals("example", dict.getNamespace()); dict = manager.getDictionary(SailfishURI.unsafeParse("TestAML")); Assert.assertNotNull(dict); Assert.assertEquals("TestAML", dict.getNamespace()); }