@Test
void shouldSaveImageToFile() throws InterruptedException {

    Platform.runLater(() -> {
        File testFile = new File("image.png");
        FixationSequence sequence = new FixationSequence(1920, 1080, fixationPoints, FixationSequence.MOUSE_FIXATION_SEQUENCE);
        sequence.saveToFile(testFile);
        assertTrue(testFile.isFile());
        testFile.delete();
    });
    TestingUtils.waitForRunLater();
    Platform.runLater(() -> {
        File testFile = new File("image.png");
        FixationSequence sequence = new FixationSequence(1920, 1080, fixationPoints, FixationSequence.GAZE_FIXATION_SEQUENCE);
        sequence.saveToFile(testFile);
        assertTrue(testFile.isFile());
        testFile.delete();
    });
    TestingUtils.waitForRunLater();
}