// we use the exact same IBasicFileFilter object as the super
GenericBasicFileFilter superFilter =
new GenericBasicFileFilter( ACCEPTED_FILENAME, ACCEPTED_EXTENSIONS, ACCEPT_DIRECTORIES );
// we use the new GenericFileAndDirectoryFilter
IBasicFileFilter filter = new GenericFileAndDirectoryFilter( superFilter, DIRECTORIES,
GenericFileAndDirectoryFilter.FilterType.FILTER_IN );
// this directory should *not* be accepted, because it is not contained in the DIRECTORIES and we are doing a
// FILTER_IN logic ( white-list )
Assert.assertTrue( !filter.accept( testFolder ) );
}