ScanningResultList scanningResults = new ScanningResultList(registry);
scanningResults.info = new ScanInfo(); // initialize info so we can add a dummy result
scanningResults.registerAtIndex(0, scanningResults.createResult(InetAddress.getLocalHost()));
ScannerConfig config = mock(ScannerConfig.class);
config.maxThreads = 10;
ScannerDispatcherThread thread = new ScannerDispatcherThread(feeder, new Scanner(registry), null, null, scanningResults, config, null);
assertTrue("ScannerThread should not clear the results - otherwise rescanning will not work",