METHOD_0 ( ) { org . apache . IDENT_0 . IDENT_1 . elasticsearch . IDENT_2 fixture = new org . apache . IDENT_0 . IDENT_1 . elasticsearch . METHOD_1 ( ) ; org . apache . IDENT_0 . Context context = new org . apache . IDENT_0 . Context ( ) ; fixture . METHOD_2 ( context ) ; java . lang . String message = STRING_0 ; java . util . Map < java . lang . String , java . lang . String > headers = org . elasticsearch . common . collect . IDENT_3 . METHOD_3 ( ) ; headers . put ( STRING_1 , STRING_2 ) ; headers . put ( STRING_3 , STRING_4 ) ; headers . put ( STRING_5 , STRING_6 ) ; org . apache . IDENT_0 . IDENT_4 event = org . apache . IDENT_0 . event . IDENT_5 . METHOD_4 ( message . getBytes ( org . apache . IDENT_0 . IDENT_1 . elasticsearch . IDENT_6 . IDENT_7 ) ) ; event . METHOD_5 ( headers ) ; org . elasticsearch . common . IDENT_8 . IDENT_9 expected = METHOD_6 ( ) . METHOD_7 ( ) ; expected . field ( STRING_7 , new java . lang . String ( message . getBytes ( ) , org . apache . IDENT_0 . IDENT_1 . elasticsearch . IDENT_6 . IDENT_7 ) ) ; for ( java . lang . String IDENT_10 : headers . METHOD_8 ( ) ) { expected . field ( IDENT_10 , new java . lang . String ( headers . get ( IDENT_10 ) . getBytes ( ) , org . apache . IDENT_0 . IDENT_1 . elasticsearch . IDENT_6 . IDENT_7 ) ) ; } expected . METHOD_9 ( ) ; org . elasticsearch . common . IDENT_8 . IDENT_9 actual = fixture . METHOD_10 ( event ) ; "<AssertPlaceHolder>" ; } METHOD_10 ( org . apache . IDENT_0 . IDENT_4 ) { org . elasticsearch . common . IDENT_8 . IDENT_9 builder = METHOD_6 ( ) . METHOD_7 ( ) ; METHOD_11 ( builder , event ) ; METHOD_12 ( builder , event ) ; return builder ; }
org . junit . Assert . assertEquals ( new java . lang . String ( expected . bytes ( ) . array ( ) ) , new java . lang . String ( actual . bytes ( ) . array ( ) ) )