METHOD_0 ( ) { java . util . Map < java . lang . String , java . util . List < java . lang . String > > headers = new java . util . IDENT_0 < java . lang . String , java . util . List < java . lang . String > > ( String . IDENT_1 ) ; headers . put ( io . IDENT_2 . elasticsearch . util . IDENT_3 . IDENT_4 , java . util . Arrays . asList ( STRING_0 ) ) ; org . elasticsearch . rest . IDENT_5 request = new io . IDENT_2 . elasticsearch . util . METHOD_1 ( headers ) ; org . elasticsearch . rest . IDENT_5 IDENT_6 = util . METHOD_2 ( request , IDENT_7 . IDENT_8 , null ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( org . elasticsearch . rest . IDENT_5 , io . IDENT_2 . elasticsearch . plugin . IDENT_9 . IDENT_7 , org . elasticsearch . rest . IDENT_10 ) { final java . lang . String uri = METHOD_3 ( request , context ) ; final org . elasticsearch . common . bytes . IDENT_11 content = METHOD_4 ( request , context ) ; if ( ( ( ! ( METHOD_5 ( request ) . equals ( context . METHOD_5 ( ) ) ) ) || ( ! ( uri . equals ( request . uri ( ) ) ) ) ) || ( content != ( request . content ( ) ) ) ) { io . IDENT_2 . elasticsearch . util . IDENT_12 . LOGGER . debug ( STRING_1 , IDENT_13 , context . METHOD_5 ( ) ) ; final java . util . Map < java . lang . String , java . util . List < java . lang . String > > IDENT_14 = new java . util . METHOD_6 ( String . IDENT_1 ) ; IDENT_14 . METHOD_7 ( request . METHOD_8 ( ) ) ; IDENT_14 . put ( IDENT_13 , java . util . Arrays . asList ( context . METHOD_5 ( ) ) ) ; if ( ( ( request . header ( STRING_2 ) ) != null ) && ( request . header ( STRING_2 ) . toLowerCase ( ) . METHOD_9 ( STRING_3 ) ) ) { IDENT_14 . put ( STRING_2 , java . util . Arrays . asList ( STRING_4 ) ) ; } org . elasticsearch . rest . IDENT_5 IDENT_15 = new org . elasticsearch . rest . METHOD_10 ( request . METHOD_11 ( ) , uri , IDENT_14 ) { @ io . IDENT_2 . elasticsearch . util . Override public io . IDENT_2 . elasticsearch . util . Method method ( ) { return request . method ( ) ; } @ io . IDENT_2 . elasticsearch . util . Override public java . lang . String uri ( ) { return uri ; } @ io . IDENT_2 . elasticsearch . util . Override public boolean METHOD_12 ( ) { return ( content . length ( ) ) > 0 ; } @ io . IDENT_2 . elasticsearch . util . Override public org . elasticsearch . common . bytes . IDENT_11 content ( ) { return content ; } @ io . IDENT_2 . elasticsearch . util . Override public java . net . IDENT_16 METHOD_13 ( ) { return request . METHOD_13 ( ) ; } @ io . IDENT_2 . elasticsearch . util . Override public java . net . IDENT_16 METHOD_14 ( ) { return request . METHOD_13 ( ) ; } @ io . IDENT_2 . elasticsearch . util . METHOD_15 ( STRING_5 ) public io . netty . channel . IDENT_17 METHOD_16 ( ) { return ( ( io . netty . channel . IDENT_17 ) ( channel ) ) ; } } ; IDENT_15 . params ( ) . METHOD_7 ( request . params ( ) ) ; if ( uri . contains ( IDENT_18 ) ) { IDENT_15 . params ( ) . put ( STRING_6 , context . METHOD_17 ( ) ) ; } return IDENT_15 ; } return request ; }
org . junit . Assert . assertEquals ( "" , request , METHOD_2 )