@Test
    void verifyAuthenticationStart() throws Exception {
        val context = MockRequestContext.create(webApplicationContext);
        val authn = RegisteredServiceTestUtils.getAuthentication(UUID.randomUUID().toString());
        val ticket = getQRCodeTicket(context, authn);
        var mv = mvc.perform(get(BASE_ENDPOINT + "/{ticket}", ticket.getId()))
            .andExpect(status().isOk())
            .andReturn()
            .getModelAndView();
        assertNotNull(mv);
        assertNotNull(mv.getModel());
        assertNotNull(mv.getModel().get("QRCodeTicket"));
        assertNotNull(mv.getModel().get("principal"));
        assertTrue((Boolean) mv.getModel().get("QRCodeAuthentication"));
    }
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