@Test
public void testSetRepeat() {

    AtomicInteger counter = new AtomicInteger();
    scenario.appendRunnable(productionSite -> counter.incrementAndGet());
    scenario.setProductionSite(fakeSite);
    scenario.setRepeat(true);
    scenario.startScenario();
    try {
        sleep(1000);
        int state1 = counter.get();
        sleep(1000);
        assertTrue(counter.get() > state1);
    } catch (InterruptedException ex) {
        fail("Thread.sleep failed: " + ex.getMessage());
    }
    /* Scenario should still be running */
    assertTrue(scenario.isRunning());
    scenario.cancelScenario();
}