JwtSubjectIssuersConfig { public Optional<JwtSubjectIssuerConfig> getConfigItem(final String issuer) { return Optional.ofNullable(subjectIssuerConfigMap.get(issuer)); } private  JwtSubjectIssuersConfig(final Iterable<JwtSubjectIssuerConfig> configItems); static JwtSubjectIssuersConfig fromJwtSubjectIssuerConfigs(
            final Iterable<JwtSubjectIssuerConfig> configItems); static JwtSubjectIssuersConfig fromOAuthConfig(final OAuthConfig config); Optional<JwtSubjectIssuerConfig> getConfigItem(final String issuer); Collection<JwtSubjectIssuerConfig> getConfigItems(); Collection<JwtSubjectIssuerConfig> getConfigItems(final SubjectIssuer subjectIssuer); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }
@Test public void issuerWithProtocolWorks() { final Optional<JwtSubjectIssuerConfig> configItem = JWT_SUBJECT_ISSUERS_CONFIG.getConfigItem("https: assertThat(configItem).hasValue(JWT_SUBJECT_ISSUER_CONFIG_GOOGLE); }
@Test public void issuerWithoutProtocolWorks() { final Optional<JwtSubjectIssuerConfig> configItem = JWT_SUBJECT_ISSUERS_CONFIG.getConfigItem("accounts.google.com"); assertThat(configItem).hasValue(JWT_SUBJECT_ISSUER_CONFIG_GOOGLE); }
@Test public void issuerWithMultipleIssuerUrisWorks() { final Optional<JwtSubjectIssuerConfig> configItem = JWT_SUBJECT_ISSUERS_CONFIG.getConfigItem("accounts.google.com"); assertThat(configItem).hasValue(JWT_SUBJECT_ISSUER_CONFIG_GOOGLE); final Optional<JwtSubjectIssuerConfig> configItem2 = JWT_SUBJECT_ISSUERS_CONFIG.getConfigItem("accounts.google.de"); assertThat(configItem2).hasValue(JWT_SUBJECT_ISSUER_CONFIG_GOOGLE_DE); }