@Test
    void verifyAuthnHandledWithRenew() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        context.setParameter(CasProtocolConstants.PARAMETER_RENEW, "true");

        WebUtils.putServiceIntoFlowScope(context, RegisteredServiceTestUtils.getService());

        val service = RegisteredServiceTestUtils.getRegisteredService(Map.of());
        servicesManager.save(service);
        WebUtils.putRegisteredService(context, service);

        val tgt = new MockTicketGrantingTicket("casuser");
        WebUtils.putTicketGrantingTicketInScopes(context, tgt);
        ticketRegistry.addTicket(tgt);

        WebUtils.putCredential(context, RegisteredServiceTestUtils.getCredentialsWithDifferentUsernameAndPassword("casuser", "Mellon"));
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, resolver.resolve(context).iterator().next().getId());
    }
This is {@link RankedMultifactorAuthenticationProviderWebflowEventResolverTests}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-webflow-mfa/src/test/java/org/apereo/cas/web/flow/resolver/impl/RankedMultifactorAuthenticationProviderWebflowEventResolverTests.java