MainPresenter { public void OnShowPostsButtonClick(MainScreen mainScreen) { mainScreen.launchPostsActivity(); } @Inject  MainPresenter(); void OnShowPostsButtonClick(MainScreen mainScreen);  }
@Test public void testShouldShowToastAndLaunchActivityOnShowPostsButtonClick() { MainScreen mainScreen = mock(MainScreen.class); mainPresenter.OnShowPostsButtonClick(mainScreen); verify(mainScreen).launchPostsActivity(); }