@Test
    void verifyOperation() {
        val tgt = new MockTicketGrantingTicket("casuser");
        val ticketId = samlAttributeQueryTicketFactory.create("ATTR_QUERY",
            getAuthnRequestFor("helloworld"), "https://www.example.org", tgt);
        assertNotNull(ticketId);
        assertNull(ticketId.getTicketGrantingTicket());
        assertNotNull(ticketId.getPrefix());
        assertNotNull(ticketId.getAuthentication());
        assertNotNull(ticketId.getObject());
        assertNotNull(ticketId.getRelyingParty());
        assertNotNull(ticketId.getExpirationPolicy());
    }
This is {@link DefaultSamlAttributeQueryTicketFactoryTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-saml-idp/src/test/java/org/apereo/cas/ticket/query/DefaultSamlAttributeQueryTicketFactoryTests.java