@Test
public void logoutReturnsObservableFromNetwork() {

    when(service.logout()).thenReturn(Observable.<Void>empty());
    TestSubscriber<Void> ts = new TestSubscriber<>();
    network.logout().subscribe(ts);
    ts.assertNoErrors();
    ts.assertCompleted();
}