@Test
    void verifyOperation() throws Throwable {
        try (val webServer = new MockWebServer(getJsonData())) {
            webServer.start();
            val props = new RestfulWebflowLoginDecoratorProperties();
            props.setUrl("http://localhost:%s".formatted(webServer.getPort()));
            val rest = new RestfulLoginWebflowDecorator(props);
            val requestContext = MockRequestContext.create(mock(ApplicationContext.class));
            rest.decorate(requestContext);
            assertTrue(requestContext.getFlowScope().contains("decoration"));
        }
    }
This is {@link RestfulLoginWebflowDecoratorTests}.

@author Misagh Moayyed
@since 6.0.0
core/cas-server-core-webflow-api/src/test/java/org/apereo/cas/web/flow/decorator/RestfulLoginWebflowDecoratorTests.java