@Override public Object create(Random random) { // TODO: make nastier InputStream affixStream = HunspellDictionaryTest.class.getResourceAsStream("test.aff"); InputStream dictStream = HunspellDictionaryTest.class.getResourceAsStream("test.dic"); try { return new HunspellDictionary(affixStream, dictStream, TEST_VERSION_CURRENT); } catch (Exception ex) { Rethrow.rethrow(ex); return null; // unreachable code } }