@Before
    public void setUp() throws URISyntaxException {
        configuration = mock(OidcConfiguration.class);
        metadata = mock(OIDCProviderMetadata.class);
        when(metadata.getIssuer()).thenReturn(new Issuer(PAC4J_URL));
        when(metadata.getJWKSetURI()).thenReturn(new URI(PAC4J_BASE_URL));
        when(configuration.getClientId()).thenReturn(ID);
        when(configuration.getSecret()).thenReturn(CLIENT_SECRET);
        algorithms = new ArrayList<>();
        when(metadata.getIDTokenJWSAlgs()).thenReturn(algorithms);
    }
Tests {@link TokenValidator}.

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