@Test public void fromJson() throws Exception { AccessToken accessToken = jsonAdapter.fromJson(ACCESS_TOKEN); assertThat(accessToken.getToken()).isEqualTo("Access999Token"); assertThat(accessToken.getExpiresIn()).isEqualTo(2592000); assertThat(accessToken.getRefreshToken()).isEqualTo("888RefreshToken"); assertThat(accessToken.getScopes()).contains(Scope.REQUEST, Scope.ALL_TRIPS, Scope.PROFILE); }
@FromJson @OAuthScopes Set<Scope> fromJson(String scopes) { return Scope.parseScopes(scopes); }
OAuthScopesAdapter { @FromJson @OAuthScopes Set<Scope> fromJson(String scopes) { return Scope.parseScopes(scopes); } }
OAuthScopesAdapter { @FromJson @OAuthScopes Set<Scope> fromJson(String scopes) { return Scope.parseScopes(scopes); }  }
OAuthScopesAdapter { @FromJson @OAuthScopes Set<Scope> fromJson(String scopes) { return Scope.parseScopes(scopes); }   }
OAuthScopesAdapter { @FromJson @OAuthScopes Set<Scope> fromJson(String scopes) { return Scope.parseScopes(scopes); }    }