@Test
    void scrapeMultipleTargets() throws ScraperException, IOException, InterruptedException {
        // Prepare the Mocking
        // Scrate Jobs 1 and 2
        when(mockDevice1.read("%DB810:DBB0:USINT")).thenReturn(new DefaultPlcResponseItem<>(PlcResponseCode.OK, new PlcLINT(1L)));
        when(mockDevice2.read("%DB810:DBB0:USINT")).thenReturn(new DefaultPlcResponseItem<>(PlcResponseCode.OK, new PlcLINT(2L)));
        // Trigger Jobs
        // Trigger var
        Random rand = new Random();
        when(mockDevice1.read(("%M0.3:BOOL"))).thenAnswer(invocationOnMock -> {
            boolean trigger = rand.nextBoolean();
            System.out.println(trigger);
            return new DefaultPlcResponseItem<>(PlcResponseCode.OK, new PlcBOOL(trigger));
        });
        when(mockDevice2.read(("%M0.3:BOOL"))).thenAnswer(invocationOnMock -> {
            boolean trigger = rand.nextBoolean();
            System.out.println("\t\t" + trigger);
            return new DefaultPlcResponseItem<>(PlcResponseCode.OK, new PlcBOOL(trigger));
        });
        // Read var
        when(mockDevice1.read("%DB810:DBW0:INT")).thenReturn(new DefaultPlcResponseItem<>(PlcResponseCode.OK, new PlcLINT(3L)));
        when(mockDevice2.read("%DB810:DBW0:INT")).thenReturn(new DefaultPlcResponseItem<>(PlcResponseCode.OK, new PlcLINT(4L)));

        ScraperConfiguration configuration = ScraperConfiguration.fromFile("src/test/resources/mock-scraper-config.yml", ScraperConfigurationClassicImpl.class);
        TriggerCollector triggerCollector = new TriggerCollectorImpl(driverManager);
        TriggeredScraperImpl scraper = new TriggeredScraperImpl((j, a, m) -> System.out.printf("Results from %s/%s: %s%n", j, a, m), driverManager, configuration.getJobs(), triggerCollector, 1000);

        scraper.start();

        new Timer().schedule(new TimerTask() {
            @Override
            public void run() {
                scraper.stop();
            }
        }, TimeUnit.SECONDS.toMillis(2));
    }
Test is added because we assume some strange behavior.
plc4j/tools/scraper/src/test/java/org/apache/plc4x/java/scraper/triggeredscraper/TriggeredScraperImplTest.java