### Question:
StagePresenter { public void setup(final Stage stage) { view.setName(stage.getName()); setState(State.EXECUTING); } @Inject  StagePresenter(final View view); @PostConstruct void init(); View getView(); void setup(final Stage stage); void setState(final State state);  }### Answer:
@Test public void testSetup() { when(stage.getName()).thenReturn(STAGE_NAME); presenter.setup(stage); verify(view, times(1)).setName(STAGE_NAME); verify(view, times(1)).setExecutingState(State.EXECUTING.name()); }