@Test
void shouldZoomOutOfLineChart() {

    final List<Long> mockShots = new ArrayList<>(List.of(1L, 2L, 3L));
    when(mockStats.getOriginalDurationsBetweenGoals()).thenReturn(mockShots);
    when(mockStats.computeRoundsDurationStandardDeviation()).thenReturn(0d);
    when(mockStats.computeRoundsDurationAverageDuration()).thenReturn(2L);
    final LineChart<String, Number> lineChart = StatDisplayUtils.buildLineChart(mockStats, mockRegion);
    final VBox parent = new VBox();
    parent.getChildren().add(lineChart);
    lineChart.fireEvent(mouseClickEvent(lineChart));
    lineChart.fireEvent(mouseClickEvent(lineChart));
    assertEquals(1, lineChart.getScaleX());
    assertEquals(1, lineChart.getScaleY());
}