METHOD_0 ( ) { java . lang . String protocol = STRING_0 ; io . IDENT_0 . IDENT_1 . IDENT_2 . servlet . IDENT_3 interceptor = new io . IDENT_0 . IDENT_1 . IDENT_2 . servlet . METHOD_1 ( ) ; interceptor . init ( METHOD_2 ( protocol ) ) ; javax . servlet . http . IDENT_4 response = new org . springframework . mock . web . METHOD_3 ( ) ; org . springframework . mock . web . IDENT_5 request = new org . springframework . mock . web . METHOD_4 ( ) ; request . METHOD_5 ( IDENT_6 . IDENT_7 , true ) ; request . METHOD_5 ( METHOD_1 . IDENT_8 , protocol ) ; interceptor . METHOD_6 ( request , response , new org . springframework . mock . web . METHOD_7 ( ) ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( io . IDENT_0 . IDENT_1 . IDENT_2 . servlet . IDENT_9 , io . IDENT_0 . IDENT_1 . IDENT_2 . servlet . IDENT_10 , io . IDENT_0 . IDENT_1 . IDENT_2 . servlet . IDENT_11 ) { javax . servlet . http . IDENT_12 r = javax . servlet . http . IDENT_12 . class . METHOD_8 ( request ) ; if ( org . IDENT_13 . util . Utils . METHOD_9 ( r ) ) { java . lang . String header = r . METHOD_10 ( io . IDENT_0 . IDENT_1 . IDENT_2 . servlet . METHOD_1 . IDENT_8 ) ; if ( ( header != null ) && ( ! ( header . isEmpty ( ) ) ) ) { if ( IDENT_14 . contains ( header . toLowerCase ( ) ) ) { javax . servlet . http . IDENT_4 . class . METHOD_8 ( response ) . METHOD_5 ( io . IDENT_0 . IDENT_1 . IDENT_2 . servlet . METHOD_1 . IDENT_8 , java . net . IDENT_15 . encode ( header , io . IDENT_0 . IDENT_1 . IDENT_2 . servlet . METHOD_1 . IDENT_16 ) ) ; } else { io . IDENT_0 . IDENT_1 . IDENT_2 . servlet . METHOD_1 . LOG . warn ( STRING_1 , header ) ; javax . servlet . http . IDENT_4 . class . METHOD_8 ( response ) . METHOD_11 ( IDENT_4 . IDENT_17 , STRING_2 ) ; } } } IDENT_18 . METHOD_6 ( request , response ) ; }
org . junit . Assert . assertEquals ( response . METHOD_10 ( METHOD_1 . IDENT_8 ) , protocol )