METHOD_0 ( ) { com . streamsets . lib . security . http . IDENT_0 IDENT_1 = org . mockito . Mockito . mock ( com . streamsets . lib . security . http . IDENT_0 . class ) ; com . streamsets . lib . security . http . IDENT_2 IDENT_3 = org . mockito . Mockito . METHOD_1 ( new com . streamsets . lib . security . http . METHOD_2 ( IDENT_1 ) ) ; javax . servlet . http . IDENT_4 req = org . mockito . Mockito . mock ( javax . servlet . http . IDENT_4 . class ) ; javax . servlet . http . IDENT_5 res = org . mockito . Mockito . mock ( javax . servlet . http . IDENT_5 . class ) ; org . mockito . Mockito . when ( req . METHOD_3 ( org . mockito . Mockito . eq ( IDENT_6 . IDENT_7 ) ) ) . thenReturn ( STRING_0 ) ; org . mockito . Mockito . when ( req . METHOD_3 ( org . mockito . Mockito . eq ( IDENT_6 . IDENT_8 ) ) ) . thenReturn ( null ) ; org . mockito . Mockito . doReturn ( IDENT_9 . IDENT_10 ) . when ( IDENT_3 ) . METHOD_4 ( org . mockito . Mockito . eq ( req ) , org . mockito . Mockito . eq ( res ) , org . mockito . Mockito . eq ( STRING_0 ) , org . mockito . Mockito . anyString ( ) ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( IDENT_3 ) . METHOD_4 ( org . mockito . Mockito . eq ( req ) , org . mockito . Mockito . eq ( res ) , org . mockito . Mockito . eq ( STRING_0 ) , org . mockito . Mockito . anyString ( ) ) ; } METHOD_5 ( javax . servlet . IDENT_11 , javax . servlet . IDENT_12 , boolean ) { javax . servlet . http . IDENT_4 request = ( ( javax . servlet . http . IDENT_4 ) ( req ) ) ; javax . servlet . http . IDENT_5 response = ( ( javax . servlet . http . IDENT_5 ) ( res ) ) ; javax . servlet . http . IDENT_13 session = request . METHOD_6 ( true ) ; org . eclipse . IDENT_14 . server . IDENT_9 authentication = ( ( org . eclipse . IDENT_14 . server . IDENT_9 ) ( session . METHOD_7 ( IDENT_15 . IDENT_16 ) ) ) ; if ( STRING_1 . equals ( request . METHOD_8 ( ) ) ) { response . METHOD_9 ( STRING_2 , conf . get ( IDENT_17 . IDENT_18 , IDENT_17 . IDENT_19 ) ) ; response . METHOD_9 ( STRING_3 , conf . get ( IDENT_17 . IDENT_20 , IDENT_17 . IDENT_21 ) ) ; response . METHOD_9 ( STRING_4 , conf . get ( IDENT_17 . IDENT_22 , IDENT_17 . IDENT_23 ) ) ; return org . eclipse . IDENT_14 . server . IDENT_9 . IDENT_24 ; } if ( authentication == null ) { java . lang . String IDENT_25 = request . METHOD_3 ( com . streamsets . IDENT_26 . http . IDENT_27 . IDENT_28 ) ; java . lang . String IDENT_29 = request . METHOD_3 ( com . streamsets . IDENT_26 . http . IDENT_27 . IDENT_30 ) ; if ( IDENT_25 == null ) { IDENT_25 = request . METHOD_10 ( com . streamsets . IDENT_26 . http . IDENT_27 . IDENT_28 ) ; IDENT_29 = request . METHOD_10 ( com . streamsets . IDENT_26 . http . IDENT_27 . IDENT_30 ) ; if ( IDENT_29 == null ) { IDENT_29 = com . streamsets . IDENT_26 . http . IDENT_27 . IDENT_31 ; } } if ( ( IDENT_25 != null ) && ( IDENT_32 . METHOD_11 ( IDENT_25 ) ) ) { com . streamsets . IDENT_26 . http . IDENT_33 IDENT_34 = ( ( com . streamsets . IDENT_26 . http . IDENT_33 ) ( METHOD_12 ( ) ) ) ; org . eclipse . IDENT_14 . server . IDENT_35 IDENT_36 = IDENT_34 . METHOD_13 ( IDENT_29 ) ; org . eclipse . IDENT_14 . server . IDENT_9 IDENT_37 = new org . eclipse . IDENT_14 . security . authentication . METHOD_14 ( METHOD_15 ( ) , IDENT_36 , null ) ; session . METHOD_16 ( METHOD_14 . IDENT_16 , IDENT_37 ) ; } if ( ( this . IDENT_3 ) instanceof org . eclipse . IDENT_14 . security . authentication . IDENT_38 ) { java . lang . String IDENT_39 = request . METHOD_3 ( IDENT_40 . IDENT_41 . METHOD_17 ( ) ) ; if ( IDENT_39 != null ) { int IDENT_42 = IDENT_39 . indexOf ( STRING_5 ) ; if ( IDENT_42 > 0 ) { java . lang . String method = IDENT_39 . substring ( 0 , IDENT_42 ) ; if ( STRING_6 . equalsIgnoreCase ( method ) ) { IDENT_39 = IDENT_39 . substring ( ( IDENT_42 + 1 ) ) ; IDENT_39 = org . eclipse . IDENT_14 . util . IDENT_43 . decode ( IDENT_39 , IDENT_44 . IDENT_45 ) ; int i = IDENT_39 . indexOf ( STRING_7 ) ; if ( i > 0 ) { java . lang . String IDENT_46 = IDENT_39 . substring ( 0 , i ) ; java . lang . String IDENT_47 = IDENT_39 . substring ( ( i + 1 ) ) ; org . eclipse . IDENT_14 . server . IDENT_35 IDENT_36 = METHOD_18 ( IDENT_46 , IDENT_47 , request ) ; if ( IDENT_36 != null ) { if ( ( session . METHOD_7 ( METHOD_14 . IDENT_16 ) ) == null ) { org . eclipse . IDENT_14 . server . IDENT_9 IDENT_37 = new org . eclipse . IDENT_14 . security . authentication . METHOD_14 ( METHOD_15 ( ) , IDENT_36 , null ) ; session . METHOD_16 ( METHOD_14 . IDENT_16 , IDENT_37 ) ; } } else { try { response . METHOD_9 ( IDENT_40 . IDENT_48 . METHOD_17 ( ) , ( ( STRING_8 + ( IDENT_49 . getName ( ) ) ) + STRING_9 ) ) ; response . METHOD_19 ( IDENT_5 . IDENT_50 ) ; return org . eclipse . IDENT_14 . server . IDENT_9 . IDENT_51 ; } catch ( java . io . IOException e ) { throw new org . eclipse . IDENT_14 . security . METHOD_20 ( e ) ; } } } } } } else { java . lang . String IDENT_52 = request . METHOD_21 ( ) ; if ( STRING_6 FLOAT_0 METHOD_22 ( IDENT_52 ) ) { java . lang . String IDENT_53 = request . METHOD_10 ( STRING_10 ) ; if ( ( IDENT_53 == null ) || ( ( IDENT_53 . trim ( ) . length ( ) ) == 0 ) ) { IDENT_53 = "/" ; } java . lang . String IDENT_54 = ( ( java . lang . String ) ( session . METHOD_7 ( IDENT_38 . IDENT_55 ) ) ) ; if ( ( ( IDENT_54 != null ) && ( ( IDENT_54 . contains ( STRING_11 ) ) || ( IDENT_54 . contains ( STRING_6 1 ) ) ) ) || ( ! ( IDENT_53 . equals ( "/" ) ) ) ) { session . METHOD_16 ( IDENT_38 . IDENT_55 , IDENT_53 ) ; } } } } } return IDENT_3 . METHOD_5 ( req , res , IDENT_56 ) ; }
org . junit . Assert . assertEquals ( IDENT_9 . IDENT_10 , IDENT_3 . METHOD_5 ( req , res , true ) )