### Question:
TranslationPresenter { void setLastAccessed(long time) { if (model != null) { model.setLastAccessed(time); sozlikDao.update(model); } } TranslationPresenter(SozlikDao sozlikDao);   }### Answer:
@Test public void whenTranslationIsOpenedSetLastAccessTime() { translationPresenter.setLastAccessed(TIME); verify(sozlikDbModelMock, times(1)).setLastAccessed(TIME); verify(sozlikDaoMock, times(1)).update(sozlikDbModelMock); verifyNoMoreInteractions(sozlikDbModelMock); }