@Test
public void testChildrenAdded() {

  Platform.runLater(() -> {
    layout.addChild(new MockWidget());
    layout.addChild(new MockWidget());
  });
  waitForFxEvents();
  assertEquals(2, ((VBox) layout.getView().lookup(".layout-container")).getChildren().size());
}