@BeforeEach
    public void setup() {
        ThreadContext.remove();
        sm = new DefaultSessionManager();
    }
Unit test for the {@link DefaultSessionManager DefaultSessionManager} implementation.
core/src/test/java/org/apache/shiro/session/mgt/DefaultSessionManagerTest.java