public static MockRequestContext create() throws Exception {
        val staticContext = new StaticApplicationContext();
        staticContext.refresh();
        return create(staticContext);
    }
This is {@link MockRequestContext}.

@author Misagh Moayyed
@since 6.6.0
core/cas-server-core-util-api/src/test/java/org/apereo/cas/util/MockRequestContext.java