@Test
    void verifyQRCodeTicketStatusNotReady() throws Exception {
        val context = MockRequestContext.create(webApplicationContext);
        val authn = RegisteredServiceTestUtils.getAuthentication(UUID.randomUUID().toString());
        val ticket = getQRCodeTicket(context, authn);
        mvc.perform(get(BASE_ENDPOINT + "/{ticket}/status", ticket.getId()))
            .andExpect(status().isUnprocessableEntity());
        mvc.perform(get(BASE_ENDPOINT + "/{ticket}/status", UUID.randomUUID().toString()))
            .andExpect(status().isBadRequest());
    }
This is {@link WebAuthnQRCodeControllerMvcTests}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-webauthn/src/test/java/org/apereo/cas/webauthn/web/WebAuthnQRCodeControllerMvcTests.java