@Test
        void verifyOperation() throws Throwable {
            val resource = oidcJsonWebKeystoreGeneratorService.generate();
            assertTrue(resource.exists());
            assertTrue(keystore.setLastModified(new Date().getTime()));
            Thread.sleep(2000);
            oidcJsonWebKeystoreGeneratorService.store(
                OidcJsonWebKeystoreGeneratorService.toJsonWebKeyStore(resource));
            assertTrue(oidcJsonWebKeystoreGeneratorService.find().isPresent());
            ((DisposableBean) oidcJsonWebKeystoreGeneratorService).destroy();
        }
This is {@link OidcDefaultJsonWebKeystoreGeneratorServiceTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-oidc/src/test/java/org/apereo/cas/oidc/jwks/generator/OidcDefaultJsonWebKeystoreGeneratorServiceTests.java