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