POSDictionary implements Iterable<String>, MutableTagDictionary { @Override public String toString() { return "POSDictionary{size=" + dictionary.size() + ", caseSensitive=" + this.caseSensitive + "}"; } POSDictionary();  POSDictionary(boolean caseSensitive); @Deprecated  POSDictionary(String file); @Deprecated  POSDictionary(String file, boolean caseSensitive); @Deprecated  POSDictionary(String file, String encoding, boolean caseSensitive); @Deprecated  POSDictionary(BufferedReader reader, boolean caseSensitive); String[] getTags(String word); Iterator<String> iterator(); void serialize(OutputStream out); @Override boolean equals(Object o); @Override String toString(); static POSDictionary create(InputStream in); String[] put(String word, String... tags); boolean isCaseSensitive();  }
@Test public void testToString() throws IOException { POSDictionary dict = loadDictionary("TagDictionaryCaseInsensitive.xml"); assertEquals("POSDictionary{size=1, caseSensitive=false}", dict.toString()); dict = loadDictionary("TagDictionaryCaseSensitive.xml"); assertEquals("POSDictionary{size=1, caseSensitive=true}", dict.toString()); }