private static long countCurrentKeys(final JsonWebKeySet jwks) {
        return jwks.getJsonWebKeys()
            .stream()
            .filter(key -> OidcJsonWebKeystoreRotationService.JsonWebKeyLifecycleStates.getJsonWebKeyState(key).isCurrent())
            .count();
    }
This is {@link OidcDefaultJsonWebKeystoreRotationServiceTests}.

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