METHOD_0 ( ) { org . apache . ambari . server . security . authentication . IDENT_0 . IDENT_1 IDENT_2 = METHOD_1 ( org . apache . ambari . server . security . authentication . IDENT_0 . IDENT_1 . class ) ; expect ( IDENT_2 . get ( ) ) . andReturn ( METHOD_2 ( ) ) . METHOD_3 ( ) ; com . IDENT_3 . IDENT_0 . IDENT_4 token = METHOD_4 ( ) ; javax . servlet . http . IDENT_5 IDENT_6 = METHOD_1 ( javax . servlet . http . IDENT_5 . class ) ; expect ( IDENT_6 . getName ( ) ) . andReturn ( STRING_0 ) . METHOD_5 ( ) ; expect ( IDENT_6 . getValue ( ) ) . andReturn ( token . serialize ( ) ) . METHOD_5 ( ) ; javax . servlet . http . IDENT_7 request = METHOD_1 ( javax . servlet . http . IDENT_7 . class ) ; expect ( request . METHOD_6 ( ) ) . andReturn ( new javax . servlet . http . IDENT_5 [ ] { IDENT_6 } ) ; org . apache . ambari . server . security . authentication . IDENT_8 IDENT_9 = METHOD_7 ( org . apache . ambari . server . security . authentication . IDENT_8 . class ) ; METHOD_8 ( ) ; org . apache . ambari . server . security . authentication . IDENT_0 . IDENT_10 filter = new org . apache . ambari . server . security . authentication . IDENT_0 . METHOD_9 ( null , IDENT_2 , null , IDENT_9 ) ; "<AssertPlaceHolder>" ; METHOD_10 ( ) ; } METHOD_11 ( javax . servlet . http . IDENT_7 ) { if ( org . apache . ambari . server . security . authentication . IDENT_11 . LOG . METHOD_12 ( ) ) { org . apache . ambari . server . utils . IDENT_12 . METHOD_13 ( IDENT_13 , org . apache . ambari . server . security . authentication . IDENT_11 . LOG ) ; } java . lang . String header = IDENT_13 . METHOD_14 ( STRING_1 ) ; if ( ( header != null ) && ( header . startsWith ( STRING_2 ) ) ) { java . lang . String IDENT_14 = org . apache . ambari . server . utils . IDENT_12 . METHOD_15 ( IDENT_13 , STRING_3 ) ; if ( org . apache . commons . lang . StringUtils . isEmpty ( IDENT_14 ) ) { return true ; } else { org . apache . ambari . server . security . authentication . IDENT_11 . LOG . warn ( ( STRING_4 + STRING_5 ) ) ; return false ; } } else { return false ; } }
org . junit . Assert . assertTrue ( filter . METHOD_11 ( request ) )