METHOD_0 ( ) { org . apache . IDENT_0 . plugin . model . IDENT_1 IDENT_2 = new org . apache . IDENT_0 . plugin . model . METHOD_1 ( ) ; IDENT_2 . setId ( 1L ) ; IDENT_2 . setName ( STRING_0 ) ; IDENT_2 . METHOD_2 ( true ) ; javax . servlet . http . IDENT_3 request = org . mockito . Mockito . mock ( javax . servlet . http . IDENT_3 . class ) ; java . lang . String IDENT_4 = STRING_0 ; org . mockito . Mockito . when ( IDENT_5 . METHOD_3 ( IDENT_4 ) ) . thenReturn ( IDENT_2 ) ; boolean IDENT_6 = IDENT_7 . METHOD_4 ( IDENT_4 , request ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( java . lang . String , javax . servlet . http . IDENT_3 ) { boolean IDENT_6 = false ; boolean IDENT_8 = org . apache . IDENT_0 . common . IDENT_9 . METHOD_5 ( STRING_1 , true ) ; java . security . IDENT_10 . IDENT_11 [ ] IDENT_12 = ( ( java . security . IDENT_10 . IDENT_11 [ ] ) ( request . METHOD_6 ( STRING_2 0 ) ) ) ; java . lang . String IDENT_13 = request . METHOD_7 ( STRING_3 0 ) ; if ( IDENT_13 == null ) { IDENT_13 = request . METHOD_8 ( ) ; } boolean IDENT_14 = request . METHOD_9 ( ) ; if ( ( IDENT_4 == null ) || ( IDENT_4 . isEmpty ( ) ) ) { org . apache . IDENT_0 . common . IDENT_15 . LOG . error ( STRING_3 6 ) ; throw IDENT_16 . METHOD_10 ( STRING_4 3 , IDENT_17 . IDENT_18 ) ; } org . apache . IDENT_0 . plugin . model . METHOD_1 service = null ; try { service = IDENT_5 . METHOD_3 ( IDENT_4 ) ; } catch ( java . lang . Exception e ) { org . apache . IDENT_0 . common . IDENT_15 . LOG . error ( ( STRING_4 5 + IDENT_4 ) ) ; throw IDENT_16 . METHOD_10 ( ( ( STRING_2 2 + IDENT_4 ) + STRING_4 4 ) , IDENT_17 . IDENT_19 ) ; } if ( service == null ) { org . apache . IDENT_0 . common . IDENT_15 . LOG . error ( ( STRING_4 5 + IDENT_4 ) ) ; throw IDENT_16 . METHOD_10 ( IDENT_20 . IDENT_21 , org . apache . IDENT_0 . plugin . util . IDENT_22 . METHOD_11 ( IDENT_4 ) , false ) ; } if ( ! ( service . METHOD_12 ( ) ) ) { org . apache . IDENT_0 . common . IDENT_15 . LOG . error ( ( STRING_5 + IDENT_4 ) ) ; throw IDENT_16 . METHOD_10 ( STRING_4 3 , IDENT_17 . IDENT_23 ) ; } if ( ! IDENT_8 ) { if ( ! METHOD_9 ) { org . apache . IDENT_0 . common . IDENT_15 . LOG . error ( ( STRING_3 1 + IDENT_4 ) ) ; throw IDENT_16 . METHOD_10 ( ( STRING_3 3 + STRING_2 1 ) , IDENT_17 . IDENT_18 ) ; } if ( ( IDENT_12 == null ) || ( ( IDENT_12 . length ) == 0 ) ) { org . apache . IDENT_0 . common . IDENT_15 . LOG . error ( ( STRING_3 2 + IDENT_4 ) ) ; throw IDENT_16 . METHOD_10 ( ( STRING_3 3 + STRING_4 ) , IDENT_17 . IDENT_18 ) ; } java . util . Map < java . lang . String , java . lang . String > IDENT_24 = service . METHOD_13 ( ) ; java . lang . String IDENT_25 = IDENT_24 . get ( STRING_4 6 ) ; if ( ( IDENT_25 == null ) || ( STRING_4 FLOAT_0 METHOD_14 ( IDENT_25 . trim ( ) ) ) ) { org . apache . IDENT_0 . common . IDENT_15 . LOG . error ( STRING_6 ) ; throw IDENT_16 . METHOD_10 ( STRING_6 , IDENT_17 . IDENT_18 ) ; } java . lang . String IDENT_26 = IDENT_25 ; boolean IDENT_27 = IDENT_25 . toLowerCase ( ) . startsWith ( org . apache . IDENT_0 . common . IDENT_15 . IDENT_28 ) ; if ( IDENT_27 ) { IDENT_26 = IDENT_25 . substring ( org . apache . IDENT_0 . common . IDENT_15 . IDENT_29 ) ; } try { java . util . Collection < java . util . List < ? > > IDENT_30 = IDENT_12 [ 0 ] . METHOD_15 ( ) ; if ( IDENT_30 != null ) { for ( java . util . List < ? > IDENT_31 : IDENT_30 ) { if ( ( IDENT_31 . size ( ) ) == 2 ) { java . lang . Integer IDENT_32 = ( ( java . lang . Integer ) ( IDENT_31 . get ( 0 ) ) ) ; java . lang . String IDENT_33 = ( ( java . lang . String ) ( IDENT_31 . get ( 1 ) ) ) ; if ( ( ( IDENT_32 == 2 ) || ( IDENT_32 == 7 ) ) && ( METHOD_16 ( IDENT_33 , IDENT_26 , IDENT_27 ) ) ) { if ( org . apache . IDENT_0 . common . IDENT_15 . LOG . METHOD_17 ( ) ) org . apache . IDENT_0 . common . IDENT_15 . LOG . debug ( ( STRING_3 + IDENT_33 ) ) ; IDENT_6 = true ; break ; } } } } } catch ( java . lang . Throwable e ) { org . apache . IDENT_0 . common . IDENT_15 . LOG . error ( STRING_7 , e ) ; throw IDENT_16 . METHOD_10 ( STRING_8 , IDENT_17 . IDENT_18 ) ; } if ( ! IDENT_6 ) { java . lang . String IDENT_34 = null ; if ( IDENT_12 != null ) { java . security . IDENT_10 . IDENT_11 IDENT_35 = IDENT_12 [ 0 ] ; java . lang . String IDENT_36 = IDENT_35 . METHOD_18 ( ) . getName ( ) ; try { javax . IDENT_37 . ldap . IDENT_38 IDENT_39 = new javax . IDENT_37 . ldap . METHOD_19 ( IDENT_36 ) ; for ( javax . IDENT_37 . ldap . IDENT_40 IDENT_41 : IDENT_39 . METHOD_20 ( ) ) { if ( STRING_4 FLOAT_1 METHOD_21 ( IDENT_41 . getType ( ) ) ) { IDENT_34 = ( IDENT_41 . getValue ( ) ) + STRING_4 2 ; break ; } } if ( IDENT_34 == null ) { org . apache . IDENT_0 . common . IDENT_15 . LOG . error ( ( STRING_4 1 + IDENT_4 ) ) ; throw IDENT_16 . METHOD_10 ( ( ( STRING_9 + IDENT_36 ) + STRING_3 7 ) , IDENT_17 . IDENT_18 ) ; } } catch ( javax . IDENT_37 . IDENT_42 e ) { org . apache . IDENT_0 . common . IDENT_15 . LOG . error ( ( ( ( STRING_2 + IDENT_34 ) + STRING_3 9 ) + IDENT_4 ) , e ) ; throw IDENT_16 . METHOD_10 ( STRING_4 7 , IDENT_17 . IDENT_18 ) ; } } if ( IDENT_34 != null ) { if ( METHOD_16 ( IDENT_34 , IDENT_26 , IDENT_27 ) ) { if ( org . apache . IDENT_0 . common . IDENT_15 . LOG . METHOD_17 ( ) ) org . apache . IDENT_0 . common . IDENT_15 . LOG . debug ( ( ( ( ( ( STRING_4 8 + IDENT_34 ) + STRING_3 4 ) + IDENT_26 ) + STRING_3 8 ) + IDENT_27 ) ) ; IDENT_6 = true ; } if ( ! IDENT_6 ) { org . apache . IDENT_0 . common . IDENT_15 . LOG . error ( ( ( ( ( ( STRING_10 + IDENT_26 ) + STRING_4 9 ) + IDENT_34 ) + STRING_3 5 ) + IDENT_4 ) ) ; throw IDENT_16 . METHOD_10 ( ( ( ( ( STRING_10 + IDENT_26 ) + STRING_4 9 ) + IDENT_34 ) + STRING_3 7 ) , IDENT_17 . IDENT_18 ) ; } } } } else { IDENT_6 = true ; } return IDENT_6 ; }
org . junit . Assert . assertTrue ( IDENT_6 )