test_class.declarator: mockGazePlay
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private GazePlay mockGazePlay;
test_class.type: GazePlay
test_class.var_name: mockGazePlay
test_class.declarator: mockTranslator
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Translator mockTranslator;
test_class.type: Translator
test_class.var_name: mockTranslator
test_class.declarator: mockStats
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Stats mockStats;
test_class.type: Stats
test_class.var_name: mockStats
test_class.declarator: mockConfig
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Configuration mockConfig;
test_class.type: Configuration
test_class.var_name: mockConfig
test_class.declarator: mockSavedStatsInfo = new SavedStatsInfo(
          new File("file.csv"),
          new File("file.csv"),
          new File("file.csv"),
          new File("file.csv"),
          new File("file.csv"),
          new File("file.csv")
      )
test_class.modifier: private
test_class.original_string: private SavedStatsInfo mockSavedStatsInfo = new SavedStatsInfo(
          new File("file.csv"),
          new File("file.csv"),
          new File("file.csv"),
          new File("file.csv"),
          new File("file.csv"),
          new File("file.csv")
      );
test_class.type: SavedStatsInfo
test_class.var_name: mockSavedStatsInfo
test_class.file: gazeplay-core/src/test/java/net/gazeplay/ui/scenes/stats/StatsContextFactoryTest.java
test_class.identifier: StatsContextFactoryTest
test_case.body: @Test
      void shouldCreateNewInstanceWithContinueButton() {
          CustomButton button = new CustomButton("bear.jpg", 300);
          StatsContext result =
              StatsContextFactory.newInstance(mockGazePlay, mockStats, button);
  
          BorderPane pane = (BorderPane) result.getRoot().getChildren().get(1);
          HBox box = (HBox) pane.getChildren().get(1);
  
          assertEquals(3, result.getRoot().getChildren().size());
          assertEquals(5, box.getChildren().size());
          assertEquals(button, box.getChildren().get(4));
      }
test_case.class_method_signature: StatsContextFactoryTest.shouldCreateNewInstanceWithContinueButton()
test_case.full_signature: @Test void shouldCreateNewInstanceWithContinueButton()
test_case.identifier: shouldCreateNewInstanceWithContinueButton
test_case.invocations: newInstance get getChildren getRoot get getChildren assertEquals size getChildren getRoot assertEquals size getChildren assertEquals get getChildren
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldCreateNewInstanceWithContinueButton()
focal_class.file: gazeplay-core/src/main/java/net/gazeplay/ui/scenes/stats/StatsContextFactory.java
focal_class.identifier: StatsContextFactory
focal_class.class_method_signature: StatsContextFactory.newInstance(
          @NonNull GazePlay gazePlay,
          @NonNull Stats stats
      )
focal_class.full_signature: public static StatsContext newInstance(
          @NonNull GazePlay gazePlay,
          @NonNull Stats stats
      )
focal_class.identifier: newInstance
focal_class.modifiers: public static
focal_class.parameters: (
          @NonNull GazePlay gazePlay,
          @NonNull Stats stats
      )
focal_class.return: StatsContext
focal_class.signature: StatsContext newInstance(
          @NonNull GazePlay gazePlay,
          @NonNull Stats stats
      )
focal_class.class_method_signature: StatsContextFactory.newInstance(
          @NonNull GazePlay gazePlay,
          @NonNull Stats stats,
          CustomButton continueButton
      )
focal_class.full_signature: public static StatsContext newInstance(
          @NonNull GazePlay gazePlay,
          @NonNull Stats stats,
          CustomButton continueButton
      )
focal_class.identifier: newInstance
focal_class.modifiers: public static
focal_class.parameters: (
          @NonNull GazePlay gazePlay,
          @NonNull Stats stats,
          CustomButton continueButton
      )
focal_class.return: StatsContext
focal_class.signature: StatsContext newInstance(
          @NonNull GazePlay gazePlay,
          @NonNull Stats stats,
          CustomButton continueButton
      )
focal_method.body: public static StatsContext newInstance(
          @NonNull GazePlay gazePlay,
          @NonNull Stats stats
      ) {
          return StatsContextFactory.newInstance(gazePlay, stats, null);
      }
focal_method.class_method_signature: StatsContextFactory.newInstance(
          @NonNull GazePlay gazePlay,
          @NonNull Stats stats
      )
focal_method.full_signature: public static StatsContext newInstance(
          @NonNull GazePlay gazePlay,
          @NonNull Stats stats
      )
focal_method.identifier: newInstance
focal_method.invocations: newInstance
focal_method.modifiers: public static
focal_method.parameters: (
          @NonNull GazePlay gazePlay,
          @NonNull Stats stats
      )
focal_method.return: StatsContext
focal_method.signature: StatsContext newInstance(
          @NonNull GazePlay gazePlay,
          @NonNull Stats stats
      )