@Test
public void logoutClearsSession() {

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