protected Subject getSubject() {
        return SecurityUtils.getSubject();
    }
Allows subclasses to set the currently executing {@link Subject} instance.

@param subject the Subject instance
core/src/test/java/org/apache/shiro/test/AbstractShiroTest.java