### Question:
TranslationPresenter { void getTranslation() { if (model != null) { translationView.showWord(model.getRawWord()); translationView.showTranslation(model.getTranslation()); translationView.setFromFlags(model.getFromResource()); translationView.setToFlags(model.getToResource()); } } TranslationPresenter(SozlikDao sozlikDao);   }### Answer:
@Test public void whenTranslationIsFoundShowIt() { when(sozlikDbModelMock.getWord()).thenReturn(SOME_WORD); when(sozlikDbModelMock.getTranslation()).thenReturn(SOME_TRANSLATION); when(sozlikDbModelMock.getToResource()).thenReturn(SOME_RESOURCE); when(sozlikDbModelMock.getFromResource()).thenReturn(SOME_RESOURCE); translationPresenter.getTranslation(); verify(translationViewMock, times(1)).showWord(sozlikDbModelMock.getRawWord()); verify(translationViewMock, times(1)).showTranslation(sozlikDbModelMock.getTranslation()); verify(translationViewMock, times(1)).setToFlags(sozlikDbModelMock.getToResource()); verify(translationViewMock, times(1)).setFromFlags(sozlikDbModelMock.getFromResource()); verifyNoMoreInteractions(translationViewMock); }