@Test
    void verifyOperation() throws Throwable {
        val factory = new SamlRestServiceTicketResourceEntityResponseFactory(new DefaultUniqueTicketIdGenerator());
        assertEquals(0, factory.getOrder());

        val service = new SamlService();
        service.setId("https://saml.example.org");
        assertTrue(factory.supports(service, CoreAuthenticationTestUtils.getAuthenticationResult()));

        assertNotNull(factory.build(new MockTicketGrantingTicket("casuser").getId(),
            service, CoreAuthenticationTestUtils.getAuthenticationResult()));
    }
This is {@link SamlRestServiceTicketResourceEntityResponseFactoryTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-saml-core/src/test/java/org/apereo/cas/support/saml/authentication/SamlRestServiceTicketResourceEntityResponseFactoryTests.java