LoginManager { public void logout() { setAuthToken(null); prefs.remove(PREF_AUTH_TOKEN); } @Inject  LoginManager(AuthInterceptor authInterceptor, Prefs prefs); void login(String authToken); void logout(); boolean isLoggedOut();  }
@Test public void logout() { loginManager.login("testToken"); loginManager.logout(); assertThat(loginManager.isLoggedOut(), is(true)); }