StringFilter implements Serializable { public String filterChars(String value, List<Character> charsToFilter) { String filteredValue = value; for (Character charToFilter : charsToFilter) { filteredValue = StringUtils.remove(filteredValue, charToFilter); } return filteredValue; }  String filterCharsAndShortWords(String value, List<Character> charsToFilter, int wordToRemoveMaxLength); String filterChars(String value, List<Character> charsToFilter); String filterShortWords(String value, int wordToRemoveMaxLength);  }
@Test public void filterChars() { assertEquals("ome word more word", stringFilter.filterChars("some words, more words", ImmutableList.of(',', 's'))); }