@Test
public void shouldSetConfettiOnStart() throws TimeoutException {

    ObservableList<Node> mockList = FXCollections.observableArrayList();
    when(mockGameContext.getGamePanelDimensionProvider()).thenReturn(mockDimensionProvider);
    when(mockGameContext.getChildren()).thenReturn(mockList);
    when(mockDimensionProvider.getDimension2D()).thenReturn(new Dimension2D(100d, 100d));
    FxToolkit.registerPrimaryStage();
    BravoTestApp bravoTestApp = (BravoTestApp) FxToolkit.setupApplication(BravoTestApp.class);
    Bravo bravo = bravoTestApp.bravo;
    bravo.setConfettiOnStart(mockGameContext);
    FxToolkit.cleanupStages();
    assertEquals(101, mockList.size());
}