TrimFilterManager { public String doTrimAll(String src) { String dest = src; for (TrimFilter filter : filters) { dest = filter.trimAll(dest); } return dest; }  List<TrimFilter> getFilters(); void removeFilter(Class<?> filterClass); void addFilter(TrimFilter... filters); String doTrimAll(String src);  }
@Test public void doTrimAll_A$String_StringIsNull() throws Exception { TrimFilterManager target = new TrimFilterManager(); String src = null; String actual = target.doTrimAll(src); String expected = null; assertThat(actual, is(equalTo(expected))); }
@Test public void doTrimAll_A$String_StringIsEmpty() throws Exception { TrimFilterManager target = new TrimFilterManager(); String src = ""; String actual = target.doTrimAll(src); String expected = ""; assertThat(actual, is(equalTo(expected))); }