PopUpCoachMarkPresenter { protected void setMessageForCoachMarkText(@StringRes int messageForCoachMarkTextRes) { mPresentation.setCoachMarkMessage( mStringResourceProvider.getStringFromResource(messageForCoachMarkTextRes)); } PopUpCoachMarkPresenter(final IStringResourceProvider stringResourceProvider,
                                   final IDimensionResourceProvider dimensionResourceProvider,
                                   final ITypeFaceProvider typeFaceProvider,
                                   final IScreenInfoProvider screenInfoProvider); void onCreate(CoachMarkBuilder coachMarkBuilder); void onCreateView(IPopUpCoachMarkPresentation popUpCoachMarkPresentation); void onViewCreated(); void onDestroyView(); void onDestroy(); void onOkButtonClicked(); void onShimClicked();  }
@Test public void setMessageForCoachMarkTextTest() { Mockito.when(mStringResourceProvider.getStringFromResource(mockedStringRes)).thenReturn("MockedString"); mPopUpCoachMarkPresenter.setMessageForCoachMarkText(mockedStringRes); Mockito.verify(mPopUpCoachMarkPresentation, Mockito.times(1)).setCoachMarkMessage("MockedString"); Mockito.verifyNoMoreInteractions(mPopUpCoachMarkPresentation); }