METHOD_0 ( ) { org . IDENT_0 . model . IDENT_1 IDENT_2 = new org . IDENT_0 . model . METHOD_1 ( STRING_0 , STRING_0 ) ; METHOD_2 ( STRING_0 , STRING_1 ) ; when ( IDENT_3 . METHOD_3 ( STRING_0 , STRING_1 ) ) . thenReturn ( true ) ; java . util . Set < org . IDENT_0 . auth . IDENT_4 . IDENT_5 > IDENT_4 = new java . util . HashSet ( ) ; IDENT_4 . add ( new org . IDENT_0 . auth . IDENT_4 . METHOD_4 ( IDENT_2 , IDENT_6 . IDENT_7 ) ) ; when ( IDENT_3 . METHOD_5 ( STRING_0 ) ) . thenReturn ( new org . IDENT_0 . model . User ( ) ) ; org . IDENT_0 . auth . IDENT_8 expected = new org . IDENT_0 . auth . METHOD_6 ( STRING_0 , new java . util . ArrayList ( IDENT_4 ) , false ) ; "<AssertPlaceHolder>" ; } METHOD_7 ( org . jboss . IDENT_9 . spi . IDENT_10 ) { try { java . lang . String auth = org . IDENT_0 . common . IDENT_9 . auth . IDENT_11 . METHOD_8 ( IDENT_12 , STRING_2 ) ; if ( ( auth != null ) && ( auth . METHOD_9 ( ) . startsWith ( STRING_3 ) ) ) { java . lang . String IDENT_13 = auth . substring ( 6 ) ; java . lang . String [ ] IDENT_14 = new java . lang . String ( org . apache . commons . codec . IDENT_15 . IDENT_16 . METHOD_10 ( IDENT_13 ) ) . split ( STRING_4 , 2 ) ; java . lang . String IDENT_17 = IDENT_14 [ 0 ] ; java . lang . String IDENT_18 = null ; if ( ( IDENT_14 . length ) > 1 ) { IDENT_18 = IDENT_14 [ 1 ] ; } if ( org . IDENT_0 . auth . IDENT_19 . log . METHOD_11 ( ) ) { java . lang . Integer length = ( IDENT_18 == null ) ? 0 : IDENT_18 . length ( ) ; org . IDENT_0 . auth . IDENT_19 . log . debug ( STRING_5 , IDENT_17 , length ) ; } if ( IDENT_20 . METHOD_3 ( IDENT_17 , IDENT_18 ) ) { org . IDENT_0 . auth . IDENT_21 IDENT_22 = METHOD_12 ( IDENT_17 ) ; org . IDENT_0 . auth . IDENT_19 . log . debug ( STRING_6 , IDENT_17 ) ; return IDENT_22 ; } else { throw new org . IDENT_0 . common . exceptions . METHOD_13 ( IDENT_23 . get ( ) . METHOD_14 ( STRING_7 ) ) ; } } } catch ( org . IDENT_0 . common . exceptions . IDENT_24 e ) { if ( org . IDENT_0 . auth . IDENT_19 . log . METHOD_11 ( ) ) { org . IDENT_0 . auth . IDENT_19 . log . debug ( ( STRING_8 + e ) ) ; } throw e ; } catch ( java . lang . Exception e ) { if ( org . IDENT_0 . auth . IDENT_19 . log . METHOD_11 ( ) ) { org . IDENT_0 . auth . IDENT_19 . log . debug ( ( STRING_8 + e ) ) ; } throw new org . IDENT_0 . common . exceptions . METHOD_15 ( IDENT_23 . get ( ) . METHOD_14 ( STRING_9 ) ) ; } return null ; }
org . junit . Assert . assertEquals ( expected , this . auth . METHOD_7 ( request ) )