### Question:
NotFileFilter implements FileFilter, Serializable { @Override public boolean accept(final FileSelectInfo fileInfo) throws FileSystemException { return !filter.accept(fileInfo); } NotFileFilter(final FileFilter filter); @Override boolean accept(final FileSelectInfo fileInfo); @Override String toString();  }### Answer:
@Test public void testAccept() throws FileSystemException { final FileSelectInfo any = createFileSelectInfo(new File("test1.txt")); Assert.assertFalse(new NotFileFilter(TrueFileFilter.TRUE).accept(any)); Assert.assertTrue(new NotFileFilter(FalseFileFilter.FALSE).accept(any)); }