@Test
public void testOnError() {

    doAnswer(invocation -> Observable.error(new Throwable(TestConst.TEST_ERROR)))
            .when(model)
            .getRepoList(TestConst.TEST_OWNER);
    repoListPresenter.onSearchButtonClick();
    verify(mockView).showError(TestConst.TEST_ERROR);
}