Code example for Subject

0
            lm.initialize(null, cbh, shared, options);
            fail("must not pass here");
        } catch (NullPointerException _) {
            // gut 
        } 
        Subject subj = new Subject();
        // must accept null for handler 
        lm.initialize(subj, null, shared, options);
        // must accept null for sharedState 
        lm.initialize(subj, cbh, null, options);
        // must not accept null for options 
        try { 
            lm.initialize(subj, cbh, shared, null);
            fail("must not pass here");
        } catch (NullPointerException _) {
            // gut 
        } 
    } 
 
    public void testAbort() throws  LoginException { 
        lm.login();