UserProfileContext extends GraphicalContext<BorderPane> { @Override public ObservableList<Node> getChildren() { return root.getChildren(); } UserProfileContext(final GazePlay gazePlay); @Override ObservableList<Node> getChildren();  }
@Test @ExpectSystemExitWithStatus(0) void shouldCreateExitButton() { UserProfileContext context = new UserProfileContext(mockGazePlay); BorderPane topPane = (BorderPane) context.getRoot().getTop(); HBox topRightPane = (HBox) topPane.getRight(); CustomButton exitButton = (CustomButton) topRightPane.getChildren().get(0); exitButton.fireEvent(TestingUtils.clickOnTarget(exitButton)); }