@Test
    void verifyForceAuthnOperation() throws Throwable {
        val registeredService = RegisteredServiceTestUtils.getRegisteredService(UUID.randomUUID().toString());
        registeredService.setProperties(Map.of(
            RegisteredServiceProperty.RegisteredServiceProperties.DELEGATED_AUTHN_FORCE_AUTHN.getPropertyName(),
            new DefaultRegisteredServiceProperty("true")));
        servicesManager.save(registeredService);

        requestContext.setParameter(CasProtocolConstants.PARAMETER_SERVICE, registeredService.getServiceId());
        val pair = setupTestContextFor(File.createTempFile("sp-metadata", ".xml").getAbsolutePath(), "cas.example.sp");
        val ticket = delegatedClientAuthenticationWebflowManager.store(requestContext, context, pair.getLeft());
        assertNotNull(ticketRegistry.getTicket(ticket.getId()));
        assertEquals(ticket.getId(), delegatedClientDistributedSessionStore.get(context, SAML2StateGenerator.SAML_RELAY_STATE_ATTRIBUTE).get());

        val builder = new SAML2AuthnRequestBuilder();
        val result = builder.build(pair.getRight());
        assertEquals(Boolean.TRUE, result.isForceAuthn());

        requestContext.setParameter("RelayState", ticket.getId());
        val service = delegatedClientAuthenticationWebflowManager.retrieve(requestContext, context, pair.getLeft());
        assertNotNull(service);
        assertNull(ticketRegistry.getTicket(ticket.getId()));
    }
This is {@link DefaultDelegatedClientAuthenticationWebflowManagerTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-pac4j-saml/src/test/java/org/apereo/cas/web/saml2/DefaultDelegatedClientAuthenticationWebflowManagerTests.java