### Question:
Trie { public TrieResult<T> getLastOnPath(CharSequence key) { return getLastOnPath(key, 0); } protected  Trie();  Trie(boolean forward); TrieResult<T>[] getAll(CharSequence key, int from); int getCells(); int getCellsPnt(); int getCellsVal(); T getFully(CharSequence key, int from, int keyLength); T getFully(CharSequence key); TrieResult<T> getLastOnPath(CharSequence key); TrieResult<T> getLastOnPath(CharSequence key,
                                       int from); abstract void store(DataOutput os); void add(CharSequence key, T cmd); void addIfNotExist(CharSequence key, T cmd); void printInfo(PrintStream out, CharSequence prefix);  }### Answer:
@Test public void testLoadingDictionary() throws Exception { Trie t = TrieLoadSaveHelper.load(Paths.get("src/test/resources/defaultTrie.dic"), TrieDataType.STRING); TrieResult cs = t.getLastOnPath("트리케라톱스"); Assert.assertEquals("초식공룡", cs.getData()); t = TrieLoadSaveHelper.load(Paths.get("src/test/resources/defaultTrie.dic"), TrieDataType.STRING); cs = t.getLastOnPath("티라노사우르스"); Assert.assertEquals("육식공룡", cs.getData()); }