@Test
    void verifyReadParametersFromRequestBody() throws Throwable {
        val context1 = MockRequestContext.create();
        context1.setMethod(HttpMethod.POST);
        context1.setContentType(MediaType.APPLICATION_FORM_URLENCODED_VALUE);
        context1.setContent(BrowserStorage.PARAMETER_BROWSER_STORAGE + '=' + UUID.randomUUID());
        var parameters = WebUtils.getHttpRequestParametersFromRequestBody(context1.getHttpServletRequest());
        assertTrue(parameters.containsKey(BrowserStorage.PARAMETER_BROWSER_STORAGE));
        assertNotNull(context1.getHttpServletRequest().getAttribute(BrowserStorage.PARAMETER_BROWSER_STORAGE));
        assertTrue(WebUtils.getRequestParameterOrAttribute(context1, BrowserStorage.PARAMETER_BROWSER_STORAGE).isPresent());

        parameters = WebUtils.getHttpRequestParametersFromRequestBody(context1.getHttpServletRequest());
        assertTrue(parameters.isEmpty());
    }
This is {@link WebUtilsTests}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-web/src/test/java/org/apereo/cas/web/support/WebUtilsTests.java