@Test public void restore() throws Exception { firstPresenter.updateText(""); StateBundle stateBundle = new StateBundle(); stateBundle.putString(FirstPresenter.TEXT, TEST_VALUE); firstPresenter.restore(stateBundle); firstPresenter.attach(firstFragment); Mockito.verify(firstFragment).initialize(TEST_VALUE); }
public void restore(StateBundle stateBundle) { this.text = stateBundle.getString(TEXT); }
FirstPresenter { public void restore(StateBundle stateBundle) { this.text = stateBundle.getString(TEXT); } }
FirstPresenter { public void restore(StateBundle stateBundle) { this.text = stateBundle.getString(TEXT); }  }
FirstPresenter { public void restore(StateBundle stateBundle) { this.text = stateBundle.getString(TEXT); }  void attach(FirstFragment fragment); boolean hasView(); void detach(FirstFragment fragment); void updateText(String text); void restore(StateBundle stateBundle); StateBundle persist(); }
FirstPresenter { public void restore(StateBundle stateBundle) { this.text = stateBundle.getString(TEXT); }  void attach(FirstFragment fragment); boolean hasView(); void detach(FirstFragment fragment); void updateText(String text); void restore(StateBundle stateBundle); StateBundle persist();  }