@Test
public void addData() {

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