METHOD_0 ( ) { final net . IDENT_0 . auth . IDENT_1 module = new net . IDENT_0 . auth . METHOD_1 ( ) ; final javax . security . auth . IDENT_2 . IDENT_3 IDENT_4 = mock ( javax . security . auth . IDENT_2 . IDENT_3 . class ) ; final javax . security . auth . message . IDENT_5 IDENT_6 = mock ( javax . security . auth . message . IDENT_5 . class ) ; when ( IDENT_6 . METHOD_2 ( ) ) . thenReturn ( false ) ; module . METHOD_3 ( IDENT_6 , null , IDENT_4 , options ) ; final javax . security . auth . message . IDENT_7 IDENT_8 = mock ( javax . security . auth . message . IDENT_7 . class ) ; final javax . servlet . http . IDENT_9 IDENT_10 = mock ( javax . servlet . http . IDENT_9 . class ) ; when ( IDENT_10 . METHOD_4 ( ) ) . thenReturn ( STRING_0 ) ; when ( IDENT_10 . METHOD_5 ( ) ) . thenReturn ( false ) ; when ( IDENT_8 . METHOD_6 ( ) ) . thenReturn ( IDENT_10 ) ; final javax . security . auth . IDENT_11 client = new javax . security . auth . METHOD_7 ( ) ; "<AssertPlaceHolder>" ; METHOD_8 ( IDENT_4 ) ; } METHOD_9 ( javax . security . auth . message . IDENT_7 , javax . security . auth . METHOD_7 , javax . security . auth . METHOD_7 ) { final javax . servlet . http . IDENT_9 req = ( ( javax . servlet . http . IDENT_9 ) ( IDENT_8 . METHOD_6 ( ) ) ) ; final javax . servlet . http . IDENT_12 IDENT_13 = ( ( javax . servlet . http . IDENT_12 ) ( IDENT_8 . METHOD_10 ( ) ) ) ; try { if ( ( ! ( IDENT_14 ) ) && ( ! ( req . METHOD_5 ( ) ) ) ) { return javax . security . auth . message . IDENT_15 . IDENT_16 ; } if ( ! ( req . METHOD_5 ( ) ) ) { IDENT_13 . METHOD_11 ( IDENT_17 . IDENT_18 , net . IDENT_0 . auth . IDENT_19 . IDENT_20 . getString ( STRING_1 ) ) ; return javax . security . auth . message . IDENT_15 . IDENT_21 ; } final java . lang . String IDENT_22 = req . METHOD_12 ( IDENT_23 ) ; if ( ( IDENT_22 == null ) && ( IDENT_14 ) ) { return javax . security . auth . message . IDENT_15 . IDENT_24 ; } else if ( ( IDENT_22 == null ) && ( ! ( IDENT_14 ) ) ) { return javax . security . auth . message . IDENT_15 . IDENT_16 ; } handler . METHOD_13 ( new javax . security . auth . IDENT_2 . IDENT_25 [ ] { new javax . security . auth . message . IDENT_2 . METHOD_14 ( client , IDENT_22 ) , new javax . security . auth . message . IDENT_2 . METHOD_15 ( client , METHOD_16 ( req ) ) } ) ; return javax . security . auth . message . IDENT_15 . IDENT_16 ; } catch ( java . io . IOException | javax . security . auth . IDENT_2 . IDENT_26 e ) { net . IDENT_0 . auth . IDENT_19 . LOG . METHOD_17 ( this . getClass ( ) . getName ( ) , STRING_2 , e ) ; throw new javax . security . auth . message . METHOD_18 ( e . getMessage ( ) ) ; } }
org . junit . Assert . assertEquals ( IDENT_15 . IDENT_16 , module . METHOD_9 ( IDENT_8 , client , null ) )