void () { final ProjectDictionary projectDictionary = createProjectDictionary(PROJECT_WORDS); final List<String> wordsToReplace = asList("EEEE", "KKKK"); projectDictionary.replaceAll(wordsToReplace); assert wordsToReplace.stream().allMatch(projectDictionary::contains); assert PROJECT_WORDS.stream().allMatch(projectWord -> projectDictionary.contains(projectWord) == null); }