METHOD_0 ( ) { org . easymock . IDENT_0 < ? extends org . apache . ambari . server . security . authentication . IDENT_1 > IDENT_2 = METHOD_1 ( IDENT_3 . IDENT_4 ) ; com . IDENT_5 . IDENT_6 . IDENT_7 token = METHOD_2 ( ) ; org . apache . ambari . server . security . authentication . IDENT_6 . IDENT_8 IDENT_9 = METHOD_3 ( org . apache . ambari . server . security . authentication . IDENT_6 . IDENT_8 . class ) ; expect ( IDENT_9 . get ( ) ) . andReturn ( METHOD_4 ( ) ) . METHOD_5 ( ) ; org . apache . ambari . server . configuration . Configuration configuration = METHOD_6 ( org . apache . ambari . server . configuration . Configuration . class ) ; expect ( configuration . METHOD_7 ( ) ) . andReturn ( 10 ) . METHOD_5 ( ) ; javax . servlet . http . IDENT_10 request = METHOD_3 ( javax . servlet . http . IDENT_10 . class ) ; javax . servlet . http . IDENT_11 response = METHOD_3 ( javax . servlet . http . IDENT_11 . class ) ; javax . servlet . IDENT_12 IDENT_13 = METHOD_3 ( javax . servlet . IDENT_12 . class ) ; javax . servlet . http . IDENT_14 IDENT_15 = METHOD_3 ( javax . servlet . http . IDENT_14 . class ) ; expect ( IDENT_15 . getName ( ) ) . andReturn ( STRING_0 ) . METHOD_8 ( ) ; expect ( IDENT_15 . getValue ( ) ) . andReturn ( token . serialize ( ) ) . METHOD_8 ( ) ; expect ( request . METHOD_9 ( ) ) . andReturn ( new javax . servlet . http . IDENT_14 [ ] { IDENT_15 } ) . METHOD_8 ( ) ; org . apache . ambari . server . IDENT_16 . entities . IDENT_17 IDENT_18 = METHOD_3 ( org . apache . ambari . server . IDENT_16 . entities . IDENT_17 . class ) ; expect ( IDENT_18 . METHOD_10 ( ) ) . andReturn ( IDENT_19 . IDENT_20 ) . METHOD_5 ( ) ; expect ( IDENT_18 . METHOD_11 ( ) ) . andReturn ( "" ) . METHOD_5 ( ) ; org . apache . ambari . server . IDENT_16 . entities . IDENT_21 IDENT_22 = METHOD_3 ( org . apache . ambari . server . IDENT_16 . entities . IDENT_21 . class ) ; expect ( IDENT_22 . METHOD_12 ( ) ) . andReturn ( java . util . Collections . singletonList ( IDENT_18 ) ) . METHOD_13 ( ) ; org . apache . ambari . server . security . authorization . User user = METHOD_3 ( org . apache . ambari . server . security . authorization . User . class ) ; org . apache . ambari . server . security . authorization . IDENT_23 IDENT_24 = METHOD_3 ( org . apache . ambari . server . security . authorization . IDENT_23 . class ) ; expect ( IDENT_24 . METHOD_14 ( STRING_1 ) ) . andReturn ( IDENT_22 ) . METHOD_8 ( ) ; expect ( IDENT_24 . METHOD_15 ( IDENT_22 ) ) . andReturn ( user ) . METHOD_8 ( ) ; expect ( IDENT_24 . METHOD_16 ( IDENT_22 ) ) . andReturn ( java . util . Collections . emptyList ( ) ) . METHOD_8 ( ) ; IDENT_24 . METHOD_17 ( IDENT_22 , STRING_1 ) ; METHOD_18 ( ) . METHOD_8 ( ) ; org . apache . ambari . server . security . authentication . IDENT_25 IDENT_26 = METHOD_6 ( org . apache . ambari . server . security . authentication . IDENT_25 . class ) ; IDENT_26 . METHOD_19 ( METHOD_20 ( IDENT_2 ) , eq ( request ) , eq ( response ) ) ; METHOD_18 ( ) . METHOD_8 ( ) ; IDENT_26 . METHOD_21 ( METHOD_20 ( IDENT_2 ) , eq ( request ) , eq ( response ) , METHOD_22 ( org . springframework . security . core . IDENT_27 . class ) ) ; METHOD_18 ( ) . METHOD_8 ( ) ; IDENT_13 . METHOD_23 ( request , response ) ; METHOD_18 ( ) . METHOD_8 ( ) ; org . springframework . security . web . IDENT_28 IDENT_29 = METHOD_6 ( org . apache . ambari . server . security . IDENT_30 . class ) ; METHOD_24 ( ) ; org . apache . ambari . server . security . authentication . IDENT_6 . IDENT_31 provider = new org . apache . ambari . server . security . authentication . IDENT_6 . METHOD_25 ( IDENT_24 , configuration ) ; org . apache . ambari . server . security . authentication . IDENT_6 . IDENT_32 filter = new org . apache . ambari . server . security . authentication . IDENT_6 . METHOD_26 ( IDENT_29 , IDENT_9 , provider , IDENT_26 ) ; filter . METHOD_23 ( request , response , IDENT_13 ) ; METHOD_27 ( ) ; java . util . List < ? extends org . apache . ambari . server . security . authentication . IDENT_1 > IDENT_33 = IDENT_2 . METHOD_28 ( ) ; for ( org . apache . ambari . server . security . authentication . IDENT_1 IDENT_34 : IDENT_33 ) { "<AssertPlaceHolder>" ; } } METHOD_28 ( ) { return values ; }
org . junit . Assert . assertSame ( filter , IDENT_34 )