protected static SecurityManager getSecurityManager() {
        return SecurityUtils.getSecurityManager();
    }
Clears Shiro's thread state, ensuring the thread remains clean for future test execution.
core/src/test/java/org/apache/shiro/test/AbstractShiroTest.java