@Test
public void onViewCreatedUsersReceived() throws Exception {

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