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

        request = getHttpRequestForEndpoint(OidcConstants.WELL_KNOWN_OPENID_FEDERATION_URL);
        entity = oidcWellKnownController.getWellKnownDiscoveryConfiguration(request, new MockHttpServletResponse());
        assertEquals(HttpStatus.OK, entity.getStatusCode());
    }
This is {@link OidcWellKnownFederationEndpointControllerTests}.

@author Misagh Moayyed
@since 7.3.0
support/cas-server-support-oidc/src/test/java/org/apereo/cas/oidc/federation/OidcWellKnownFederationEndpointControllerTests.java