METHOD_0 ( ) { when ( request . METHOD_1 ( Constants . IDENT_0 ) ) . thenReturn ( STRING_0 ) ; IDENT_1 . IDENT_2 . auth . IDENT_3 IDENT_4 = IDENT_1 . IDENT_2 . auth . IDENT_3 . METHOD_2 ( STRING_1 , STRING_2 ) ; when ( IDENT_5 . METHOD_3 ( STRING_0 ) ) . thenReturn ( IDENT_4 ) ; IDENT_1 . IDENT_2 . auth . IDENT_3 user = IDENT_6 . METHOD_4 ( request ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( javax . servlet . http . IDENT_7 ) { java . lang . String IDENT_8 = IDENT_1 . utils . network . IDENT_9 . METHOD_1 ( request , Constants . IDENT_0 ) ; if ( ! ( IDENT_1 . utils . StringUtils . isEmpty ( IDENT_8 ) ) ) { return IDENT_5 . METHOD_3 ( IDENT_8 ) ; } java . security . IDENT_10 IDENT_11 = request . METHOD_5 ( ) ; if ( null == IDENT_11 ) { return IDENT_1 . IDENT_2 . auth . IDENT_3 . METHOD_6 ( ) ; } java . lang . String IDENT_12 = IDENT_11 . getName ( ) ; IDENT_1 . IDENT_13 . IDENT_14 . log . debug ( ( STRING_3 + IDENT_12 ) ) ; if ( IDENT_12 . contains ( STRING_4 ) ) { IDENT_12 = IDENT_12 . substring ( 0 , IDENT_12 . indexOf ( STRING_4 ) ) ; } return IDENT_5 . METHOD_7 ( IDENT_12 ) ; }
org . junit . Assert . assertEquals ( IDENT_4 , user )