@Test
public void testShowLoadingOnError() {

    doAnswer(invocation -> Observable.error(new Throwable(TestConst.TEST_ERROR)))
            .when(model)
            .getRepoContributors(TestConst.TEST_OWNER, TestConst.TEST_REPO);
    doAnswer(invocation -> Observable.error(new Throwable(TestConst.TEST_ERROR)))
            .when(model)
            .getRepoBranches(TestConst.TEST_OWNER, TestConst.TEST_REPO);

    repoInfoPresenter.onCreateView(null);

    verify(mockView).showLoading();
}