### Question:
SelectFilterFactory implements TokenFilterFactory { public TokenFilter createTokenFilter(TokenStream tokenStream, Properties properties, List<String> includeWordsList) { String ignoreCaseStr = properties.getProperty(IGRNORE_CASE_PARAMETER); String enablePosIncStr = properties .getProperty(ENABLE_POSITION_INCREMENTS); boolean ignoreCase = ignoreCaseStr != null && ignoreCaseStr .equals(TRUE); boolean enablePosInc = enablePosIncStr != null && enablePosIncStr.equals(TRUE); Set includeWords = getIncludeWordsForCoverSubset(properties.getProperty(COVER_SUBSET_NAME), includeWordsList, ignoreCase); return new SelectFilter(enablePosInc, tokenStream, includeWords, ignoreCase); } SelectFilterFactory();  SelectFilterFactory(PlainFileReaderFactory plainFileReaderFactory); void preloadResources(Properties properties); TokenFilter createTokenFilter(TokenStream tokenStream,
			Properties properties, List<String> includeWordsList); TokenFilter createTokenFilter(TokenStream tokenStream,
			Properties properties); static final String COVER_SUBSET_NAME; }### Answer:
@Test public void test() throws IOException, SecurityException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException { SelectFilterFactory selectFilterFactory = new SelectFilterFactory(); Properties properties = new Properties(); properties.put(FILE_PATH_PARAMETER, "src/test/resources/selectedwords.txt"); TokenFilter selectFilter = selectFilterFactory.createTokenFilter(new DummyTokenStream("dummy", 0, 0, 0), properties); assertNotNull(selectFilter); Field includeWordsField = selectFilter.getClass().getDeclaredField("includeWords"); includeWordsField.setAccessible(true); CharArraySet set = (CharArraySet) includeWordsField.get(selectFilter); assertTrue("'positive1' is not in set", set.contains("positive1")); assertTrue("'positive2' is not in set", set.contains("positive2")); assertTrue("'positive3' is not in set", set.contains("positive3")); }