@Test
    void verifyMissingHeader() {
        assertNotNull(qrAuthenticationChannelController);
        val message = mock(Message.class);
        var headers = new MessageHeaders(Map.of("nativeHeaders", new LinkedMultiValueMap<>()));
        when(message.getHeaders()).thenReturn(headers);
        assertFalse(qrAuthenticationChannelController.verify(message));

        val nativeHeaders = new LinkedMultiValueMap<>();
        nativeHeaders.put(QRAuthenticationConstants.QR_AUTHENTICATION_CHANNEL_ID, List.of(UUID.randomUUID().toString()));
        headers = new MessageHeaders(Map.of("nativeHeaders", nativeHeaders));
        when(message.getHeaders()).thenReturn(headers);
        assertFalse(qrAuthenticationChannelController.verify(message));
    }
This is {@link QRAuthenticationChannelControllerTests}.

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