trie = (PersistentHATTrie<Integer>) trie.addMember("forks",9);
return trie;
}
@Test
public final void testSmallTrie() {
PersistentHATTrie trie = createTrie();
assertEquals(10, trie.count());
assertEquals(0, trie.getMember("we"));
assertEquals(1, trie.getMember("were"));
assertEquals(2, trie.getMember("went"));
assertEquals(3, trie.getMember("west"));
assertEquals(4, trie.getMember("water"));
assertEquals(5, trie.getMember("western"));
assertEquals(6, trie.getMember("tri"));
assertEquals(7, trie.getMember("fork"));
assertEquals(8, trie.getMember("trifork"));
assertEquals(9, trie.getMember("forks"));
}