EnterAuthorPresenter { public void initDeckAuthorInput() { activity.updateDeckAuthorInput(newDeckContext.getAuthor()); } EnterAuthorPresenter(EnterAuthorView activity, NewDeckContext newDeckContext); void inflateBitmaps(); void initDeckAuthorInput(); void nextButtonClicked(); void backButtonClicked(); void deckAuthorInputChanged(String deckAuthor);  }
@Test public void shouldUpdateViewWithAuthor() { when(newDeckContext.getAuthor()).thenReturn(AN_AUTHOR); presenter.initDeckAuthorInput(); verify(activity).updateDeckAuthorInput(AN_AUTHOR); }