@Test
    void verifyBypassedWithoutPrompt() throws Throwable {
        val request = new MockHttpServletRequest();
        request.addHeader(HttpHeaders.USER_AGENT, "MSIE");
        request.setRequestURI("https://cas.org/something");

        val response = new MockHttpServletResponse();
        val context = new JEEContext(request, response);

        val service = getOidcRegisteredService(UUID.randomUUID().toString(), randomServiceUrl());
        service.markAsDynamicallyRegistered();
        servicesManager.save(service);
        val mv = consentApprovalViewResolver.resolve(context, service);
        assertTrue(mv.hasView());
        assertTrue(mv.getModel().containsKey("dynamic"));
        assertTrue(mv.getModel().containsKey("dynamicTime"));
    }
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