@AfterEach
    public void tearDownSubject() {
        //3. Unbind the subject from the current thread:
        clearSubject();
    }
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