FederationScopeClaimTranslationService implements ScopeClaimTranslationService { @Override public Set<String> getClaimsForScope(String scope) { return "openid".equals(scope) ? claims : noClaims; } FederationScopeClaimTranslationService(); @Override Set<String> getClaimsForScope(String scope); @Override Set<String> getClaimsForScopeSet(Set<String> scopes);  }
@Test public void testGetEmptyClaimsForScope() throws Exception { Set claims = subject.getClaimsForScope("bogus"); assertTrue(claims.isEmpty()); }
@Test public void testGetClaimsForScope() throws Exception { Set claims = subject.getClaimsForScope("openid"); assertEquals(subject.allClaims(), claims); }