METHOD_0 ( ) { org . apache . hadoop . security . token . IDENT_0 . web . IDENT_1 . IDENT_2 op = IDENT_1 . IDENT_2 . IDENT_3 ; javax . servlet . http . IDENT_4 request = org . mockito . Mockito . mock ( javax . servlet . http . IDENT_4 . class ) ; org . mockito . Mockito . when ( request . METHOD_1 ( ) ) . thenReturn ( op . METHOD_2 ( ) ) ; javax . servlet . http . IDENT_5 response = org . mockito . Mockito . mock ( javax . servlet . http . IDENT_5 . class ) ; org . mockito . Mockito . when ( response . METHOD_3 ( ) ) . thenReturn ( new java . io . METHOD_4 ( new java . io . StringWriter ( ) ) ) ; java . lang . String IDENT_6 = METHOD_5 ( ) ; org . mockito . Mockito . when ( request . METHOD_6 ( ) ) . thenReturn ( ( ( ( ( ( ( ( ( ( ( ( IDENT_1 . IDENT_7 ) + STRING_0 ) + ( op . toString ( ) ) ) + STRING_1 ) + ( IDENT_1 . IDENT_8 ) ) + STRING_0 ) + null ) + STRING_1 ) + ( IDENT_1 . IDENT_9 ) ) + STRING_0 ) + IDENT_6 ) ) ; org . mockito . Mockito . METHOD_7 ( response ) ; java . io . StringWriter writer = new java . io . StringWriter ( ) ; java . io . METHOD_4 IDENT_10 = new java . io . METHOD_4 ( writer ) ; org . mockito . Mockito . when ( response . METHOD_3 ( ) ) . thenReturn ( IDENT_10 ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( response ) . METHOD_8 ( IDENT_5 . IDENT_11 ) ; } METHOD_9 ( org . apache . hadoop . security . authentication . server . IDENT_12 , javax . servlet . http . IDENT_4 , javax . servlet . http . IDENT_5 ) { boolean IDENT_13 = true ; java . lang . String op = request . METHOD_10 ( IDENT_14 . IDENT_7 ) ; op = ( op != null ) ? op . METHOD_11 ( ) : null ; if ( ( org . apache . hadoop . fs . http . server . IDENT_15 . IDENT_16 . contains ( op ) ) && ( ! ( request . METHOD_1 ( ) . equals ( STRING_2 ) ) ) ) { org . apache . hadoop . fs . http . client . IDENT_17 . IDENT_2 IDENT_18 = org . apache . hadoop . fs . http . client . IDENT_17 . IDENT_2 . valueOf ( op ) ; if ( IDENT_18 . METHOD_2 ( ) . equals ( request . METHOD_1 ( ) ) ) { if ( ( IDENT_18 . METHOD_12 ( ) ) && ( token == null ) ) { response . METHOD_13 ( IDENT_5 . IDENT_11 , java . text . IDENT_19 . format ( STRING_3 , IDENT_18 ) ) ; IDENT_13 = false ; } else { org . apache . hadoop . lib . service . IDENT_20 IDENT_21 = org . apache . hadoop . fs . http . server . IDENT_22 . get ( ) . get ( org . apache . hadoop . lib . service . IDENT_20 . class ) ; try { java . util . Map map = null ; switch ( IDENT_18 ) { case IDENT_3 : java . lang . String IDENT_23 = request . METHOD_10 ( IDENT_17 . IDENT_8 ) ; if ( IDENT_23 == null ) { IDENT_23 = token . METHOD_14 ( ) ; } org . apache . hadoop . security . token . IDENT_24 < ? > IDENT_25 = IDENT_21 . METHOD_15 ( org . apache . hadoop . security . IDENT_26 . METHOD_16 ( ) , IDENT_23 ) ; map = org . apache . hadoop . fs . http . server . IDENT_15 . METHOD_17 ( IDENT_25 ) ; break ; case IDENT_27 : case IDENT_28 : java . lang . String IDENT_29 = request . METHOD_10 ( IDENT_17 . IDENT_30 ) ; if ( IDENT_29 == null ) { response . METHOD_13 ( IDENT_5 . IDENT_31 , java . text . IDENT_19 . format ( STRING_4 , IDENT_18 , IDENT_17 . IDENT_30 ) ) ; IDENT_13 = false ; } else { if ( IDENT_18 == ( org . apache . hadoop . fs . http . client . IDENT_17 . IDENT_2 . IDENT_28 ) ) { org . apache . hadoop . security . token . IDENT_24 < org . apache . hadoop . lib . service . IDENT_32 > IDENT_33 = new org . apache . hadoop . security . token . METHOD_18 ( ) ; IDENT_33 . METHOD_19 ( IDENT_29 ) ; IDENT_21 . METHOD_20 ( IDENT_33 , org . apache . hadoop . security . IDENT_26 . METHOD_16 ( ) . METHOD_14 ( ) ) ; } else { org . apache . hadoop . security . token . METHOD_18 < org . apache . hadoop . lib . service . IDENT_32 > IDENT_33 = new org . apache . hadoop . security . token . METHOD_18 ( ) ; IDENT_33 . METHOD_19 ( IDENT_29 ) ; long IDENT_34 = IDENT_21 . METHOD_21 ( IDENT_33 , token . METHOD_14 ( ) ) ; map = new java . util . HashMap ( ) ; map . put ( STRING_5 , IDENT_34 ) ; } } break ; } if ( IDENT_13 ) { response . METHOD_8 ( IDENT_5 . IDENT_35 ) ; if ( map != null ) { response . METHOD_22 ( IDENT_36 . IDENT_37 ) ; java . io . IDENT_38 writer = response . METHOD_3 ( ) ; org . json . simple . JSONObject . METHOD_23 ( map , writer ) ; writer . write ( org . apache . hadoop . fs . http . server . IDENT_15 . IDENT_39 ) ; writer . METHOD_24 ( ) ; } IDENT_13 = false ; } } catch ( org . apache . hadoop . lib . service . IDENT_40 ex ) { throw new org . apache . hadoop . security . authentication . client . METHOD_25 ( ex . toString ( ) , ex ) ; } } } else { response . METHOD_13 ( IDENT_5 . IDENT_31 , java . text . IDENT_19 . format ( STRING_6 , request . METHOD_1 ( ) , IDENT_18 , IDENT_18 . METHOD_2 ( ) ) ) ; IDENT_13 = false ; } } return IDENT_13 ; }
org . junit . Assert . assertFalse ( handler . METHOD_9 ( null , request , response ) )