### Question:
AndFileFilter implements FileFilter, ConditionalFileFilter, Serializable { @Override public void addFileFilter(final FileFilter fileFilter) { this.fileFilters.add(fileFilter); } AndFileFilter();  AndFileFilter(final FileFilter... filters);  AndFileFilter(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 testAddFileFilter() { final FileFilter filter1 = new DummyFilter(); final FileFilter filter2 = new DummyFilter(); final FileFilter filter3 = new DummyFilter(); final AndFileFilter testee = new AndFileFilter(); testee.addFileFilter(filter1); testee.addFileFilter(filter2); testee.addFileFilter(filter3); assertContainsOnly(testee.getFileFilters(), filter1, filter2, filter3); }