### Question:
Language implements Comparable<Language> { void loadStopwords() { try { Set<String> swSet = new HashSet<String>(); String stopwordsResource = "/stopwords/stopwords_" + getLocale().toString() + ".txt"; log.debug("Loading stopwords from: " + stopwordsResource); InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream(stopwordsResource); if (is == null) is = getClass().getResourceAsStream(stopwordsResource); if (is == null) { log.warn("No stopwords found for locale " + getLocale().toString()); } else { InputStreamReader isr = new InputStreamReader(is, "UTF-8"); BufferedReader br = new BufferedReader(isr); String line = null; while ((line = br.readLine()) != null) { line = line.trim(); if (line.indexOf("|") != -1) { line = line.substring(0, line.indexOf("|")); line = line.trim(); } if (line != null && line.length() > 0 && !swSet.contains(line)) { swSet.add(line); } } } stopWords = swSet; } catch (Throwable e) { log.warn(e.getMessage(), e); } } Language(Locale locale); Locale getLocale(); String getLanguage(); String getDisplayLanguage(); String getDefaultDisplayLanguage(); Set<String> getStopWords(); void setStopWords(Set<String> stopWords); String getAnalyzerClass(); void setAnalyzerClass(String analyzerClass); @SuppressWarnings("unchecked") Analyzer getAnalyzer(); void setAnalyzer(Analyzer analyzer); @Override String toString(); @Override int hashCode(); @Override int compareTo(Language o); SnowballProgram getStemmer();  }### Answer:
@Test public void testLoadStopwords() throws IOException { Language language = new Language(Locale.FRENCH); Set<String> swords = language.getStopWords(); assertNotNull(swords); assertEquals(126, swords.size()); }