@Test
public void addData() {

    simulation.addData(1);
    assertThatThrownBy(() -> simulation.addData(-1))
            .isInstanceOf(IndexOutOfBoundsException.class);
    assertThatThrownBy(() -> simulation.addData(3))
            .isInstanceOf(IndexOutOfBoundsException.class);
}