@Test
public void fromOAuthConfig() {

    final JwtSubjectIssuerConfig googleItem = new JwtSubjectIssuerConfig( "https://accounts.google.com", SubjectIssuer.GOOGLE);
    final JwtSubjectIssuerConfig additionalItem = new JwtSubjectIssuerConfig("https://additional.google.com", SubjectIssuer.newInstance("additional"));
    final OAuthConfig oAuthConfig = DefaultOAuthConfig.of(ConfigFactory.load("oauth-test.conf"));
    final JwtSubjectIssuersConfig jwtSubjectIssuersConfig = JwtSubjectIssuersConfig.fromOAuthConfig(oAuthConfig);
    assertThat(jwtSubjectIssuersConfig.getConfigItem(googleItem.getIssuer())).contains(googleItem);
    assertThat(jwtSubjectIssuersConfig.getConfigItem(additionalItem.getIssuer())).contains(additionalItem);
}