SimpleDictionary implements Dictionary { @Override public boolean contains(String aWord) { return words.contains(aWord); } SimpleDictionary(File aDict, String aEncoding);  SimpleDictionary(String... aWords);  SimpleDictionary(InputStream aDictStream, String aEncoding); @Override boolean contains(String aWord); @Override List<String> getAll(); void setWords(Set<String> aWords);  }
@Test public void testContains() { assertEquals(72508, dict.getAll().size()); assertTrue(dict.contains("worauf")); assertTrue(dict.contains("woraufhin")); assertTrue(dict.contains("woraus")); }