@Test
    void verifyPostNoCode() {
        val request = new MockHttpServletRequest();
        val response = new MockHttpServletResponse();
        var mv = callbackAuthorizeController.handlePostRequest(request, response);
        assertTrue(mv.getModel().containsKey("error"));
        val id = UUID.randomUUID().toString();
        request.setParameter(OAuth20DeviceUserCodeApprovalEndpointController.PARAMETER_USER_CODE, id);
        mv = callbackAuthorizeController.handlePostRequest(request, response);
        assertTrue(mv.getModel().containsKey("error"));
    }
This is {@link OAuth20DeviceUserCodeApprovalEndpointControllerTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-oauth/src/test/java/org/apereo/cas/support/oauth/web/endpoints/OAuth20DeviceUserCodeApprovalEndpointControllerTests.java