SessionConfiguration implements Serializable { public Collection<Scope> getScopes() { return scopes; } protected  SessionConfiguration(@Nonnull String clientId,
                                   @Nonnull String clientSecret,
                                   @Nonnull String serverToken,
                                   @Nonnull String redirectUri,
                                   @Nonnull EndpointRegion endpointRegion,
                                   @Nonnull Environment environment,
                                   @Nonnull Collection<Scope> scopes,
                                   @Nonnull Collection<String> customScopes,
                                   @Nonnull Locale locale); String getClientId(); String getClientSecret(); String getServerToken(); String getRedirectUri(); Environment getEnvironment(); EndpointRegion getEndpointRegion(); @Nonnull String getEndpointHost(); @Nonnull String getLoginHost(); Collection<Scope> getScopes(); Collection<String> getCustomScopes(); Locale getLocale(); Builder newBuilder();  }
@Test public void getScopes_whenSetOnBuilder_setsOnConfiguration() throws Exception { List<Scope> scopes = Arrays.asList(Scope.ALL_TRIPS, Scope.HISTORY); SessionConfiguration config = new SessionConfiguration.Builder() .setClientId("clientId") .setScopes(scopes) .build(); assertTrue(scopes.containsAll(config.getScopes())); }