@Test
    void verifyBypassedBySession() throws Throwable {
        val request = new MockHttpServletRequest();
        request.addHeader(HttpHeaders.USER_AGENT, "MSIE");
        val response = new MockHttpServletResponse();
        val context = new JEEContext(request, response);
        oauthDistributedSessionStore.set(context, OAuth20Constants.BYPASS_APPROVAL_PROMPT, "true");
        val service = getOidcRegisteredService(UUID.randomUUID().toString(), randomServiceUrl());
        servicesManager.save(service);
        assertFalse(consentApprovalViewResolver.resolve(context, service).hasView());
    }
This is {@link OidcConsentApprovalViewResolverTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-oidc/src/test/java/org/apereo/cas/oidc/web/OidcConsentApprovalViewResolverTests.java