public List<ScenarioWithIndex> getScenarioWithIndex() {
        return toScesimDataWithIndex(ScenarioWithIndex::new);
    }
@Test
    public void getScenarioWithIndex() {
        List<ScenarioWithIndex> scenarios = simulation.getScenarioWithIndex();
        
        assertThat(scenarios).hasSameSizeAs(simulation.getUnmodifiableData());
        
        ScenarioWithIndex scenario = scenarios.get(0);
        int index = scenario.getIndex();
        
        assertThat(scenario.getScesimData()).isEqualTo(simulation.getDataByIndex(index - 1));
    }