@Test
public void givenCombinedPostsReturnsValidList_whenViewIsAttached_shouldPassItToAdapterWithoutError() throws Exception {

    //Test when view is attached and data controller emits valid data, onSubscribe should be called from view, which is attached to the adapter
    mPostListObservable = Observable.just(getValidPostItems());
    when(mDataController.getCombinedPosts()).thenReturn(mPostListObservable);
    mPresenter = new PostListPresenter(mDataController);
    mPresenter.attachView(mView);
    verify(mView, atLeastOnce()).onSubscribe(getValidPostItems());
}