@Test
    void verifyFailsOperation() throws Throwable {
        val id = UUID.randomUUID().toString();
        val service = getOidcRegisteredService(id);
        service.setUserInfoSigningAlg(AlgorithmIdentifiers.NONE);
        service.setUserInfoEncryptedResponseAlg(AlgorithmIdentifiers.NONE);
        servicesManager.save(service);

        val response = new MockHttpServletResponse();
        val accessToken = getAccessToken(id);
        val data = oidcUserProfileDataCreator.createFrom(accessToken);
        val entity = oidcUserProfileViewRenderer.render(data, accessToken, response);
        assertNotNull(entity);
        assertEquals(HttpStatus.BAD_REQUEST, entity.getStatusCode());

        service.setUserInfoSigningAlg(AlgorithmIdentifiers.RSA_USING_SHA256);
        service.setUserInfoEncryptedResponseAlg(AlgorithmIdentifiers.NONE);
        servicesManager.save(service);
        assertEquals(HttpStatus.BAD_REQUEST, oidcUserProfileViewRenderer.render(data, accessToken, response).getStatusCode());
    }
This is {@link OidcUserProfileViewRendererFlatTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-oidc/src/test/java/org/apereo/cas/oidc/profile/OidcUserProfileViewRendererFlatTests.java