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