@Test
    void verifyOperation() throws Throwable {
        val resource1 = oidcJsonWebKeystoreGeneratorService.generate();
        val jwks1 = IOUtils.toString(resource1.getInputStream(), StandardCharsets.UTF_8);

        val resource2 = oidcJsonWebKeystoreGeneratorService.generate();
        val jwks2 = IOUtils.toString(resource2.getInputStream(), StandardCharsets.UTF_8);

        assertEquals(jwks1, jwks2);

        val set1 = oidcJsonWebKeystoreGeneratorService.store(OidcJsonWebKeystoreGeneratorService.toJsonWebKeyStore(resource1));
        assertNotNull(set1);

        assertTrue(oidcJsonWebKeystoreGeneratorService.find().isPresent());
    }
This is {@link OidcJpaJsonWebKeystoreGeneratorServiceTests}.

@author Misagh Moayyed
@since 6.5.0
support/cas-server-support-oidc-jpa/src/test/java/org/apereo/cas/oidc/jwks/generator/OidcJpaJsonWebKeystoreGeneratorServiceTests.java