GazeMediaPlayer extends Parent implements GameLifeCycle { public static StackPaneButton createTextStackPaneButton(String text, double width, double height) { StackPaneButton bwpi = createSimpleStackPaneButton(width, height); bwpi.getButton().setText(text); return bwpi; } GazeMediaPlayer(final IGameContext gameContext, Stats stats); static StackPaneButton createGraphicStackPaneButton(double width, double height, @NonNull String imageURL); static StackPaneButton createSimpleStackPaneButton(double width, double height); static StackPaneButton createTextStackPaneButton(String text, double width, double height); @Override void launch(); @Override void dispose(); static Button createMediaButton(String text, double width, double height);  }
@Test void shouldCreateButtonOfTextStackPaneButton() { StackPaneButton stackPaneButton = GazeMediaPlayer.createTextStackPaneButton("Test", 500, 500); Assertions.assertNotNull(stackPaneButton.getButton()); Assertions.assertEquals("Test", stackPaneButton.getButton().getText()); }