@Test
public void updateCurrentUserReturnsUserFromService() {

    when(service.updateCurrentUser(user)).thenReturn(Observable.just(user));
    TestSubscriber<User> ts = new TestSubscriber<>();
    network.updateCurrentUser(user).subscribe(ts);
    assertThat(ts.getOnNextEvents(), hasItems(user));
}