METHOD_0 ( ) { final javax . servlet . http . IDENT_0 request = org . mockito . Mockito . mock ( javax . servlet . http . IDENT_0 . class ) ; final javax . servlet . http . IDENT_1 response = org . mockito . Mockito . mock ( javax . servlet . http . IDENT_1 . class ) ; final javax . servlet . http . IDENT_2 session = org . mockito . Mockito . mock ( javax . servlet . http . IDENT_2 . class ) ; final org . eclipse . IDENT_3 . server . IDENT_4 authentication = org . mockito . Mockito . mock ( org . eclipse . IDENT_3 . security . IDENT_5 . class ) ; org . mockito . Mockito . when ( request . METHOD_1 ( true ) ) . thenReturn ( session ) ; org . mockito . Mockito . when ( request . METHOD_2 ( ) ) . thenReturn ( IDENT_6 . IDENT_7 ) ; org . mockito . Mockito . when ( session . METHOD_3 ( IDENT_8 . IDENT_9 ) ) . thenReturn ( authentication ) ; final org . eclipse . IDENT_3 . security . IDENT_5 IDENT_10 = ( ( org . eclipse . IDENT_3 . security . IDENT_5 ) ( org . apache . drill . exec . server . rest . IDENT_11 . IDENT_12 . IDENT_13 . METHOD_4 ( request , response , false ) ) ) ; "<AssertPlaceHolder>" ; verify ( response , METHOD_5 ( ) ) . METHOD_6 ( INT_0 ) ; verify ( response , METHOD_5 ( ) ) . METHOD_7 ( IDENT_14 . IDENT_15 . METHOD_8 ( ) , IDENT_14 . IDENT_16 . METHOD_8 ( ) ) ; } METHOD_4 ( javax . servlet . IDENT_17 , javax . servlet . IDENT_18 , boolean ) { final javax . servlet . http . IDENT_0 req = ( ( javax . servlet . http . IDENT_0 ) ( request ) ) ; final javax . servlet . http . IDENT_2 session = req . METHOD_1 ( true ) ; final org . eclipse . IDENT_3 . server . IDENT_4 authentication = ( ( org . eclipse . IDENT_3 . server . IDENT_4 ) ( session . METHOD_3 ( IDENT_8 . IDENT_9 ) ) ) ; final java . lang . String uri = req . METHOD_2 ( ) ; final boolean IDENT_19 = IDENT_20 || ( uri . equals ( IDENT_6 . IDENT_7 ) ) ; if ( authentication != null ) { if ( uri . equals ( IDENT_6 . IDENT_21 ) ) { org . apache . drill . exec . server . rest . auth . IDENT_22 . logger . debug ( STRING_0 , req . METHOD_9 ( ) ) ; session . METHOD_10 ( IDENT_8 . IDENT_9 ) ; return null ; } return authentication ; } return METHOD_11 ( request , response , IDENT_19 ) ; }
org . junit . Assert . assertEquals ( authentication , IDENT_10 )