@Test
void shouldBuildQuitKeyChooser() throws InterruptedException {

    Platform.runLater(() -> {
        ConfigurationContext context = new ConfigurationContext(mockGazePlay);
        StringProperty quitProperty = new SimpleStringProperty("Y");
        when(mockConfig.getQuitKeyProperty()).thenReturn(quitProperty);
        ChoiceBox<String> result = context.buildQuitKeyChooser(mockConfig);
        assertEquals(6, result.getItems().size());
        result.setValue("Q");
        assertEquals("Q", quitProperty.getValue());
    });
    TestingUtils.waitForRunLater();
}