@Test
public void retrieveUserCallsNetwork() {

    String id = "someId";
    when(network.retrieveUser(id)).thenReturn(Observable.just(user));
    TestSubscriber<User> ts = new TestSubscriber<>();
    tapglue.retrieveUser(id).subscribe(ts);
    assertThat(ts.getOnNextEvents(), hasItems(user));
}