@Test
void shouldCalculateInfoBox() {

    List<CoordinatesTracker> coordinatesTrackers = List.of(
        new CoordinatesTracker(100, 200, 1234, 3456),
        new CoordinatesTracker(200, 200, 4321, 4567)
    );
    when(mocksStats.getMovementHistoryWithTime()).thenReturn(coordinatesTrackers);
    AreaOfInterest areaOfInterest = new AreaOfInterest(mockGazePlay, mocksStats);
    Polygon currentArea = new Polygon();
    currentArea.getPoints().addAll(1d, 1d, 2d, 1d, 2d, 3d, 1d, 3d);
    InfoBoxProps result1 = areaOfInterest.calculateInfoBox("id", 12.34, 1.23, 3, 300, 400, currentArea);
    InfoBoxProps result2 = areaOfInterest.calculateInfoBox("id", 12.34, 1.23, 3, 500, 400, currentArea);
    assertEquals(401, result1.getInfoBox().getLayoutX());
    assertEquals(209, result2.getInfoBox().getLayoutX());
}