@Test
    void verifyUnknownTicket() throws Throwable {
        val payload = JwtBuilder.JwtRequest.builder()
            .subject("casuser")
            .jwtId("unknown-id")
            .serviceAudience(Set.of("https://example.com/normal/"))
            .issuer(casProperties.getServer().getPrefix())
            .build();
        val jwt = jwtBuilder.build(payload);
        val request = QRAuthenticationTokenValidationRequest.builder()
            .registeredService(Optional.empty())
            .token(jwt)
            .deviceId(UUID.randomUUID().toString())
            .build();
        assertThrows(InvalidTicketException.class,
            () -> qrAuthenticationTokenValidatorService.validate(request));
    }
This is {@link DefaultQRAuthenticationTokenValidatorServiceTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-qr-authentication/src/test/java/org/apereo/cas/qr/validation/DefaultQRAuthenticationTokenValidatorServiceTests.java