@Test
    void verifyOperation() {
        val tgt = new MockTicketGrantingTicket("casuser");
        val ticketId = samlArtifactTicketFactory.create(UUID.randomUUID().toString(), tgt.getAuthentication(),
            tgt, casProperties.getAuthn().getSamlIdp().getCore().getEntityId(),
            "https://www.example.org", getAuthnRequestFor("helloworld"));
        assertNotNull(ticketId);
        assertNotNull(ticketId.getPrefix());
        assertNotNull(ticketId.getTicketGrantingTicket());
        assertNotNull(ticketId.getObject());
        assertNotNull(ticketId.getRelyingPartyId());
        assertNotNull(ticketId.getExpirationPolicy());
    }
This is {@link DefaultSamlArtifactTicketFactoryTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-saml-idp/src/test/java/org/apereo/cas/ticket/artifact/DefaultSamlArtifactTicketFactoryTests.java