private ServiceTicket getServiceTicket() throws Throwable {
            val tgt = new MockTicketGrantingTicket(UUID.randomUUID().toString());
            ticketRegistry.addTicket(tgt);
            val trackingPolicy = mock(TicketTrackingPolicy.class);
            val ticketService = RegisteredServiceTestUtils.getService(samlRegisteredService.getServiceId());
            ticketService.getAttributes().put(SamlProtocolConstants.PARAMETER_ENTITY_ID, List.of(samlRegisteredService.getServiceId()));
            val st1 = tgt.grantServiceTicket(ticketService, trackingPolicy);
            ticketRegistry.addTicket(st1);
            ticketRegistry.updateTicket(tgt);
            return st1;
        }
This is {@link SSOSamlIdPProfileCallbackHandlerControllerTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-saml-idp/src/test/java/org/apereo/cas/support/saml/web/idp/profile/sso/SSOSamlIdPProfileCallbackHandlerControllerTests.java