### Question:
OrFileFilter implements FileFilter, ConditionalFileFilter, Serializable { @Override public boolean accept(final FileSelectInfo fileInfo) throws FileSystemException { for (final FileFilter fileFilter : fileFilters) { if (fileFilter.accept(fileInfo)) { return true; } } return false; } OrFileFilter();  OrFileFilter(final FileFilter... filters);  OrFileFilter(final List<FileFilter> fileFilters); @Override boolean accept(final FileSelectInfo fileInfo); @Override void addFileFilter(final FileFilter fileFilter); @Override List<FileFilter> getFileFilters(); @Override boolean removeFileFilter(final FileFilter fileFilter); @Override void setFileFilters(final List<FileFilter> fileFilters); @Override String toString();  }### Answer:
@Test public void testAccept() throws FileSystemException { final FileSelectInfo any = createFileSelectInfo(new File("anyfile")); Assert.assertFalse(new OrFileFilter().accept(any)); Assert.assertTrue(new OrFileFilter(new True()).accept(any)); Assert.assertTrue(new OrFileFilter(new True(), new True()).accept(any)); Assert.assertTrue(new OrFileFilter(new False(), new True()).accept(any)); Assert.assertTrue(new OrFileFilter(new True(), new False()).accept(any)); Assert.assertFalse(new OrFileFilter(new False()).accept(any)); Assert.assertFalse(new OrFileFilter(new False(), new False()).accept(any)); }