@Test
    void verifyAttemptWithoutCredential() throws Throwable {
        val context = MockRequestContext.create(applicationContext);

        val tgt = new MockTicketGrantingTicket("casuser");
        ticketRegistry.addTicket(tgt);

        val service = RegisteredServiceTestUtils.getService("service-ticket-request");
        val registeredService = RegisteredServiceTestUtils.getRegisteredService(service.getId(), Map.of());
        servicesManager.save(registeredService);
        WebUtils.putTicketGrantingTicketInScopes(context, tgt);
        WebUtils.putServiceIntoFlowScope(context, service);
        val event = serviceTicketRequestWebflowEventResolver.resolveSingle(context);
        assertEquals(CasWebflowConstants.TRANSITION_ID_GENERATE_SERVICE_TICKET, event.getId());
    }
This is {@link ServiceTicketRequestWebflowEventResolverTests}.

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