MainPresenter extends BasePresenter<MainPresenter.View> implements SyncConnectionListener { public void onFABScrollUpClicked() { getView().scrollToFirstPosition(); } @Inject  MainPresenter(); @Override void initialize(); @Override void onDestroy(); @Override void onNetworkConnectionChanged(boolean internetConnected); void onFABScrollUpClicked(); void onTabSelected(int position);  }
@Test public void shouldScrollToFirstPositionWhenFABClicked(){ presenter.setView(view); presenter.onFABScrollUpClicked(); verify(view , times(1)).scrollToFirstPosition(); }