@Test
public void logoutCallsNetwork() {

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