@Test
    @OperateOnDeployment(TESTABLE_MODE)
    void sessionInjection() {
        assertNotNull(injectedComponents.getSession());
        assertNotNull(injectedComponents.getNoCreateionSession());
        injectedComponents.getSession().setAttribute("hello", "bye");
        assertEquals("bye", injectedComponents.getSession().getAttribute("hello"));
        assertEquals("bye", injectedComponents.getNoCreateionSession().getAttribute("hello"));
    }
Tests @Injecting Subject, Session, Principal and SecurityManager with CDI
integration-tests/jakarta-ee/src/test/java/org/apache/shiro/testing/cdi/ComponentInjectionIT.java