@BeforeAll
    public static void beforeClass() {
        //0.  Build and set the SecurityManager used to build Subject instances used in your tests
        //    This typically only needs to be done once per class if your shiro.ini doesn't change,
        //    otherwise, you'll need to do this logic in each test that is different
        var basicIniEnvironment = new BasicIniEnvironment("classpath:test.shiro.ini");
        setSecurityManager(basicIniEnvironment.getSecurityManager());
    }
Simple example test class to be used to show how one might write Shiro-compatible unit tests.

@since 1.2
core/src/test/java/org/apache/shiro/test/ExampleShiroIntegrationTest.java