@Test
public void onViewCreatedFailed() throws Exception {

    TestScheduler scheduler = new TestScheduler();
    TestSubject<List<User>> subject = TestSubject.create(scheduler);
    when(mInteractor.getUserList()).thenReturn(subject);
    mPresenter.onViewCreated();
    verify(mView).showLoading();
    verify(mInteractor).getUserList();
    IOException e = new IOException();
    subject.onError(e);
    scheduler.triggerActions();
    verify(mView, never()).setUserList(any());
    verify(mView, never()).showContent();
    verify(mView).showError(e);
}