@Test
    void verifyFailsOperation() throws Throwable {
        val tgt = new MockTicketGrantingTicket("casuser");
        ticketRegistry.addTicket(tgt);

        val payload = JwtBuilder.JwtRequest.builder()
            .subject("unknown")
            .jwtId(tgt.getId())
            .issuer(casProperties.getServer().getPrefix())
            .serviceAudience(Set.of("https://example.com/normal/"))
            .validUntilDate(DateTimeUtils.dateOf(LocalDate.now(Clock.systemUTC()).plusDays(1)))
            .build();
        val jwt = jwtBuilder.build(payload);
        val credential = new QRAuthenticationTokenCredential(jwt, UUID.randomUUID().toString());
        assertThrows(FailedLoginException.class,
            () -> qrAuthenticationTokenAuthenticationHandler.authenticate(credential, mock(Service.class)));
    }
This is {@link QRAuthenticationTokenAuthenticationHandlerTests}.

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