@Test
    void verifyOperation() {
        val appCtx = new StaticApplicationContext();
        appCtx.refresh();

        val container = BeanContainer.of("Hello", "World");
        appCtx.registerBean("beanContainer", BeanContainer.class);
        appCtx.getBeanFactory().initializeBean(container, "beanContainer");
        appCtx.getBeanFactory().autowireBean(container);
        appCtx.getBeanFactory().registerSingleton("beanContainer", container);

        ApplicationContextProvider.holdApplicationContext(appCtx);
        assertDoesNotThrow(() -> {
            val holding = new HoldingBeanContainer();
            ApplicationContextProvider.processBeanInjections(holding);
            assertNotNull(holding.getContainer());
            assertEquals(2, holding.getContainer().size());
        });
    }
This is {@link ApplicationContextProviderTests}.

@author Misagh Moayyed
@since 6.5.0
core/cas-server-core-util-api/src/test/java/org/apereo/cas/util/spring/ApplicationContextProviderTests.java