### Question:
SymbolicLinkFileFilter implements FileFilter, Serializable { @Override public boolean accept(final FileSelectInfo fileInfo) throws FileSystemException { if (!fileInfo.getFile().exists()) { return false; } return fileInfo.getFile().isSymbolicLink(); } protected  SymbolicLinkFileFilter(); @Override boolean accept(final FileSelectInfo fileInfo); static final FileFilter SYMBOLIC; static final FileFilter ACTUAL; }### Answer:
@Test public void testAcceptActual() throws FileSystemException { final FileFilter testee = SymbolicLinkFileFilter.ACTUAL; Assert.assertTrue(targetFileInfo.getBaseFolder().exists()); Assert.assertTrue(targetFileInfo.getFile().exists()); Assert.assertTrue(targetFileInfo.toString(), testee.accept(targetFileInfo)); Assert.assertTrue(notExistingFileInfo.toString(), testee.accept(notExistingFileInfo)); }
@Test public void testAcceptSymbolic() throws FileSystemException { final FileFilter testee = SymbolicLinkFileFilter.SYMBOLIC; Assert.assertTrue(linkFileInfo.toString(), testee.accept(linkFileInfo)); Assert.assertFalse(notExistingFileInfo.toString(), testee.accept(notExistingFileInfo)); }