EnterDeckTitlePresenter { public void deckTitleInputChanged(String deckTitle) { newDeckContext.setDeckTitle(deckTitle); updateNextButton(); } EnterDeckTitlePresenter(EnterDeckTitleView activity, NewDeckContext newDeckContext); void updateDeckTitleInput(); void inflateBitmaps(); void backButtonClicked(); void nextButtonClicked(); void deckTitleInputChanged(String deckTitle);  }
@Test public void shouldUpdateDeckTitleWhenDeckTextChanges() { when(newDeckContext.getDeckTitle()).thenReturn(A_DECK_TITLE); presenter.deckTitleInputChanged(A_DECK_TITLE); verify(newDeckContext).setDeckTitle(A_DECK_TITLE); }