@Test
    void verifyFails() {
        val request = getHttpRequestForEndpoint(OidcConstants.JWKS_URL);
        val response = mock(HttpServletResponse.class);
        doThrow(new RuntimeException()).when(response).setContentType(anyString());

        val result = oidcJwksEndpointController.handleRequestInternal(request, response,
            OidcJsonWebKeystoreRotationService.JsonWebKeyLifecycleStates.CURRENT.name().toLowerCase(Locale.ENGLISH));
        assertTrue(result.getStatusCode().is4xxClientError());
    }
This is {@link OidcJwksEndpointControllerTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-oidc/src/test/java/org/apereo/cas/oidc/web/controllers/jwks/OidcJwksEndpointControllerTests.java