@Test
    void verifyOperation() throws Throwable {
        val cacheKey = new OidcJsonWebKeyCacheKey(casProperties.getAuthn().getOidc().getCore().getIssuer(), OidcJsonWebKeyUsage.SIGNING);
        val keys = oidcDefaultJsonWebKeystoreCache.get(cacheKey);
        assertNotNull(keys);
        assertNotNull(oidcJsonWebKeyStoreListener);
        realApplicationContext.publishEvent(new OidcJsonWebKeystoreModifiedEvent(this,
            File.createTempFile("prefix", "postfix"), null));
        Thread.sleep(2000);
        val newKeys = oidcDefaultJsonWebKeystoreCache.getIfPresent(cacheKey);
        assertNull(newKeys);
    }
This is {@link OidcDefaultJsonWebKeyStoreListenerTests}.

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