@Test
    void testLoginNonWebSubject() {
        Subject.Builder builder = new Subject.Builder(sm);
        Subject subject = builder.buildSubject();
        subject.login(new UsernamePasswordToken("lonestarr", "vespa"));

    }
Test for SHIRO-646: Unable to login a DelegatingSubject on a DefaultWebSecurityManager.
web/src/test/java/org/apache/shiro/web/mgt/NonIniWebSecurityManagerTest.java