### Question:
HiddenFileFilter implements FileFilter, Serializable { @Override public boolean accept(final FileSelectInfo fileInfo) throws FileSystemException { if (!fileInfo.getFile().exists()) { return false; } return fileInfo.getFile().isHidden(); } protected  HiddenFileFilter(); @Override boolean accept(final FileSelectInfo fileInfo); static final FileFilter HIDDEN; static final FileFilter VISIBLE; }### Answer:
@Test public void testAcceptHidden() throws FileSystemException { final FileFilter testee = HiddenFileFilter.HIDDEN; Assert.assertFalse(testee.accept(visibleFileInfo)); Assert.assertFalse(testee.accept(notExistingFileInfo)); }
@Test public void testAcceptVisible() throws FileSystemException { final FileFilter testee = HiddenFileFilter.VISIBLE; Assert.assertTrue(testee.accept(visibleFileInfo)); Assert.assertTrue(testee.accept(notExistingFileInfo)); }