@Test public void persist() throws Exception { firstPresenter.updateText(TEST_VALUE); StateBundle stateBundle = firstPresenter.persist(); assertThat(stateBundle.getString(FirstPresenter.TEXT)).isEqualTo(TEST_VALUE); }
public StateBundle persist() { StateBundle stateBundle = new StateBundle(); stateBundle.putString(TEXT, text); return stateBundle; }
FirstPresenter { public StateBundle persist() { StateBundle stateBundle = new StateBundle(); stateBundle.putString(TEXT, text); return stateBundle; } }
FirstPresenter { public StateBundle persist() { StateBundle stateBundle = new StateBundle(); stateBundle.putString(TEXT, text); return stateBundle; }  }
FirstPresenter { public StateBundle persist() { StateBundle stateBundle = new StateBundle(); stateBundle.putString(TEXT, text); return stateBundle; }  void attach(FirstFragment fragment); boolean hasView(); void detach(FirstFragment fragment); void updateText(String text); void restore(StateBundle stateBundle); StateBundle persist(); }
FirstPresenter { public StateBundle persist() { StateBundle stateBundle = new StateBundle(); stateBundle.putString(TEXT, text); return stateBundle; }  void attach(FirstFragment fragment); boolean hasView(); void detach(FirstFragment fragment); void updateText(String text); void restore(StateBundle stateBundle); StateBundle persist();  }