@Test
public void createPostCallsNetwork() {

    Post post = mock(Post.class);
    when(network.createPost(post)).thenReturn(Observable.just(post));
    TestSubscriber<Post> ts = new TestSubscriber<>();
    tapglue.createPost(post).subscribe(ts);
    assertThat(ts.getOnNextEvents(), hasItems(post));
}