@Test
    void verifyOperation() throws Throwable {
        var request = getHttpRequestForEndpoint("unknown/" + OidcConstants.WELL_KNOWN_URL);
        request.setRequestURI("unknown/issuer");
        var entity = oidcWellKnownController.getWellKnownDiscoveryConfiguration(request, new MockHttpServletResponse());
        assertEquals(HttpStatus.NOT_FOUND, entity.getStatusCode());

        request = getHttpRequestForEndpoint(OidcConstants.WELL_KNOWN_URL);
        entity = oidcWellKnownController.getWellKnownDiscoveryConfiguration(request, new MockHttpServletResponse());
        assertEquals(HttpStatus.OK, entity.getStatusCode());
        val res1 = MAPPER.writeValueAsString(entity);
        assertNotNull(res1);

        request = getHttpRequestForEndpoint(OidcConstants.WELL_KNOWN_OPENID_CONFIGURATION_URL);
        entity = oidcWellKnownController.getWellKnownOpenIdDiscoveryConfiguration(request, new MockHttpServletResponse());
        assertEquals(HttpStatus.OK, entity.getStatusCode());
        val res2 = MAPPER.writeValueAsString(entity);
        assertNotNull(res2);
    }
This is {@link OidcWellKnownEndpointControllerTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-oidc/src/test/java/org/apereo/cas/oidc/web/controllers/OidcWellKnownEndpointControllerTests.java