### Question:
OidcUtils { public static List<String> getScopeClaims(String... scope) { List<String> claims = new ArrayList<>(); if (scope != null) { for (String s : scope) { if (SCOPES_MAP.containsKey(s)) { claims.addAll(SCOPES_MAP.get(s)); } } } return claims; } private  OidcUtils(); static List<String> getPromptValues(MultivaluedMap<String, String> params); static String getOpenIdScope(); static String getProfileScope(); static String getEmailScope(); static String getAddressScope(); static String getPhoneScope(); static String getAllScopes(); static List<String> getScopeClaims(String... scope); static void validateAccessTokenHash(ClientAccessToken at, JwtToken jwt); static void validateAccessTokenHash(ClientAccessToken at, JwtToken jwt, boolean required); static void validateAccessTokenHash(String accessToken, JwtToken jwt, boolean required); static void validateCodeHash(String code, JwtToken jwt); static void validateCodeHash(String code, JwtToken jwt, boolean required); static String calculateAccessTokenHash(String value, SignatureAlgorithm sigAlgo); static String calculateAuthorizationCodeHash(String value, SignatureAlgorithm sigAlgo); static void setStateClaimsProperty(OAuthRedirectionState state,
                                              MultivaluedMap<String, String> params); static OidcProviderMetadata getOidcProviderMetadata(String issuerURL); static final String ID_TOKEN_RESPONSE_TYPE; static final String ID_TOKEN_AT_RESPONSE_TYPE; static final String CODE_AT_RESPONSE_TYPE; static final String CODE_ID_TOKEN_RESPONSE_TYPE; static final String CODE_ID_TOKEN_AT_RESPONSE_TYPE; static final String ID_TOKEN; static final String OPENID_SCOPE; static final String PROFILE_SCOPE; static final String EMAIL_SCOPE; static final String ADDRESS_SCOPE; static final String PHONE_SCOPE; static final List<String> PROFILE_CLAIMS; static final List<String> EMAIL_CLAIMS; static final List<String> ADDRESS_CLAIMS; static final List<String> PHONE_CLAIMS; static final String CLAIMS_PARAM; static final String CLAIM_NAMES_PROPERTY; static final String CLAIM_SOURCES_PROPERTY; static final String JWT_CLAIM_SOURCE_PROPERTY; static final String ENDPOINT_CLAIM_SOURCE_PROPERTY; static final String TOKEN_CLAIM_SOURCE_PROPERTY; static final String PROMPT_PARAMETER; static final String PROMPT_NONE_VALUE; static final String PROMPT_CONSENT_VALUE; static final String CONSENT_REQUIRED_ERROR; }### Answer:
@Test public void testScopeToClaimsMappingNoValue() { List<String> claims = OidcUtils.getScopeClaims(); assertNotNull(claims); assertEquals(0, claims.size()); }
@Test public void testScopeToClaimsMappingSingleValue() { List<String> claims = OidcUtils.getScopeClaims(OidcUtils.PHONE_SCOPE); assertNotNull(claims); assertEquals(1, claims.size()); assertEquals(AbstractUserInfo.PHONE_CLAIM, claims.get(0)); }
@Test public void testScopeToClaimsMappingMultiValue() { List<String> claims = OidcUtils.getScopeClaims(OidcUtils.PROFILE_SCOPE, OidcUtils.PHONE_SCOPE); assertNotNull(claims); assertEquals(15, claims.size()); }