RepoInfoFragment extends BaseFragment implements RepoInfoView { @Override public void onCreate(@Nullable Bundle savedInstanceState) { App.getComponent().inject(this); super.onCreate(savedInstanceState); presenter.onCreate(this, getRepositoryVO()); }  static RepoInfoFragment newInstance(Repository repository); @Override void onCreate(@Nullable Bundle savedInstanceState); @Nullable @Override View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState); @Override void onSaveInstanceState(Bundle outState); @Override void showError(String error); @Override void showContributors(List<Contributor> contributors); @Override void showBranches(List<Branch> branches);  }
@Test public void testOnCreate() { repoInfoFragment.onCreate(null); verify(repoInfoPresenter, times(2)).onCreate(repoInfoFragment, repository); }