### Question:
InclusionExclusionFilenameFilter implements java.io.FilenameFilter { @Override public boolean accept(File file, String string) { if(inclusionPattern == null && exclusionPattern == null) { return true; } else if (inclusionPattern == null && exclusionPattern != null) { return !exclusion.matcher(string).matches(); } else { if(exclusionPattern == null) { return inclusion.matcher(string).matches(); } return inclusion.matcher(string).matches() && !exclusion.matcher(string).matches(); } }  void setExclusionPattern(String exclusionPattern); void setInclusionPattern(String inclusionPattern); String getExclusionPattern(); String getInclusionPattern(); @Override boolean accept(File file, String string);  }### Answer:
@Test public void testEmptyFilter() { assertTrue(filter.accept(null, "anystring")); }