@Test
    void verifyTicketGrantingTicketAsDefault() throws Throwable {
        val registeredService = RegisteredServiceTestUtils.getRegisteredService(casProperties.getServer().getPrefix());
        servicesManager.save(registeredService);

        val result = CoreAuthenticationTestUtils.getAuthenticationResult(authenticationSystemSupport);
        val tgt = centralAuthenticationService.createTicketGrantingTicket(result);

        val response = ticketGrantingTicketResourceEntityResponseFactory.build(tgt, new MockHttpServletRequest());
        assertNotNull(response);
        assertEquals(HttpStatus.CREATED, response.getStatusCode());
    }
This is {@link JwtTicketGrantingTicketResourceEntityResponseFactoryTests}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-rest-tokens/src/test/java/org/apereo/cas/tokens/JwtTicketGrantingTicketResourceEntityResponseFactoryTests.java