List invalidConsumers = new ArrayList();
InvalidScanConsumer badconsumer = new InvalidScanConsumer();
invalidConsumers.add( badconsumer );
RepositoryScanner scanner = lookupRepositoryScanner();
RepositoryContentStatistics stats = scanner.scan( repository, knownConsumers, invalidConsumers,
getIgnoreList(), RepositoryScanner.FRESH_SCAN );
assertNotNull( "Stats should not be null.", stats );
assertMinimumHits( "Stats.totalFileCount", 17, stats.getTotalFileCount() );
assertMinimumHits( "Processed Count", 17, consumer.getProcessCount() );
assertEquals( "Processed Count (of invalid items)", 6, badconsumer.getProcessCount() );
}