@Test
    public void testNoneAlgoNotAllowed() {
        algorithms.add(JWSAlgorithm.parse("none"));
        TestsHelper.expectException(() -> new TokenValidator(configuration, metadata), TechnicalException.class,
            "Unsigned ID tokens are not allowed: they must be explicitly enabled on client side and " +
                "the response_type used must return no ID Token from the authorization endpoint");
    }
Tests {@link TokenValidator}.

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