@Test
    public void testTwoAlgorithms() {
        algorithms.add(JWSAlgorithm.HS256);
        algorithms.add(JWSAlgorithm.RS256);
        final TokenValidator validator = new TokenValidator(configuration, metadata);
        final List<IDTokenValidator> validators = validator.getIdTokenValidators();
        assertEquals(2, validators.size());
    }
Tests {@link TokenValidator}.

@author Jerome LELEU
@since 5.2.0
pac4j-oidc/src/test/java/org/pac4j/oidc/profile/creator/TokenValidatorTests.java