SecondScreen implements GazeMotionListener { public void close() { stage2.close(); } SecondScreen(final Stage stage2, final Lighting[][] lightingArray); void close(); void light(final Point2D rawCoordinates); @Override void gazeMoved(final Point2D position);  }
@Test void shouldCloseTheStage() { SecondScreen secondScreen = new SecondScreen(mockStage, lightingArray); secondScreen.close(); verify(mockStage).close(); }