RideRequestActivity extends Activity implements LoginCallback, RideRequestViewCallback { @Override public void onLoginSuccess(@NonNull AccessToken accessToken) { accessTokenStorage.setAccessToken(accessToken); load(); }  @NonNull static Intent newIntent(@NonNull Context context,
            @Nullable RideParameters rideParameters,
            @NonNull SessionConfiguration loginConfiguration,
            @Nullable String accessTokenStorageKey); @Override void onCreate(Bundle savedInstanceState); @Override void onErrorReceived(@NonNull RideRequestViewError error); @Override void onLoginCancel(); @Override void onLoginError(@NonNull AuthenticationError error); @Override void onLoginSuccess(@NonNull AccessToken accessToken); @Override void onAuthorizationCodeReceived(@NonNull String authorizationCode); @Override void onRequestPermissionsResult(
            int requestCode,
            @NonNull String[] permissions,
            @NonNull int[] grantResults); static final String AUTHENTICATION_ERROR; static final String RIDE_REQUEST_ERROR; }
@Test public void onLoad_whenAccessTokenGeneratedFromLogin_shouldSaveAccessTokenResult() { String tokenString = "accessToken1234"; AccessToken accessToken = new AccessToken(2592000, ImmutableList.of(Scope.RIDE_WIDGETS), tokenString, "refreshToken", "tokenType"); activity.onLoginSuccess(accessToken); AccessToken resultAccessToken = new AccessTokenManager(activity).getAccessToken(); assertNotNull(resultAccessToken); assertEquals(resultAccessToken.getExpiresIn(), 2592000); assertEquals(resultAccessToken.getToken(), tokenString); assertEquals(resultAccessToken.getScopes().size(), 1); assertTrue(resultAccessToken.getScopes().contains(Scope.RIDE_WIDGETS)); }