METHOD_0 ( ) { com . stratio . IDENT_0 . IDENT_1 . elasticsearch . IDENT_2 fixture = new com . stratio . IDENT_0 . IDENT_1 . elasticsearch . METHOD_1 ( ) ; org . apache . IDENT_3 . Context context = new org . apache . IDENT_3 . Context ( ) ; fixture . METHOD_2 ( context ) ; java . lang . String message = STRING_0 2 ; java . util . Map < java . lang . String , java . lang . String > headers = org . elasticsearch . common . collect . IDENT_4 . METHOD_3 ( ) ; long IDENT_5 = java . lang . System . currentTimeMillis ( ) ; headers . put ( STRING_0 7 , java . lang . String . valueOf ( IDENT_5 ) ) ; headers . put ( STRING_0 6 , STRING_0 5 ) ; headers . put ( STRING_0 , STRING_0 8 ) ; headers . put ( STRING_0 9 , STRING_0 1 ) ; headers . put ( STRING_1 0 , STRING_0 0 ) ; headers . put ( STRING_0 4 , STRING_2 ) ; headers . put ( STRING_3 , STRING_4 ) ; org . apache . IDENT_3 . IDENT_6 event = org . apache . IDENT_3 . event . IDENT_7 . METHOD_4 ( message . getBytes ( com . stratio . IDENT_0 . IDENT_1 . elasticsearch . IDENT_8 . IDENT_9 ) ) ; event . METHOD_5 ( headers ) ; org . elasticsearch . common . IDENT_10 . IDENT_11 expected = METHOD_6 ( ) . METHOD_7 ( ) ; expected . field ( STRING_5 , new java . lang . String ( message . getBytes ( ) , com . stratio . IDENT_0 . IDENT_1 . elasticsearch . IDENT_8 . IDENT_9 ) ) ; expected . field ( STRING_6 , new java . util . Date ( IDENT_5 ) ) ; expected . field ( STRING_7 , STRING_0 5 ) ; expected . field ( STRING_8 , STRING_4 ) ; expected . field ( STRING_1 , STRING_0 8 ) ; expected . field ( STRING_0 3 , STRING_0 1 ) ; expected . METHOD_7 ( STRING_9 ) ; expected . field ( STRING_0 7 , java . lang . String . valueOf ( IDENT_5 ) ) ; expected . field ( STRING_0 9 , STRING_0 1 ) ; expected . field ( STRING_0 , STRING_0 8 ) ; expected . field ( STRING_0 4 , STRING_2 ) ; expected . field ( STRING_0 6 , STRING_0 5 ) ; expected . field ( STRING_1 0 , STRING_0 0 ) ; expected . field ( STRING_3 , STRING_4 ) ; expected . METHOD_8 ( ) ; expected . METHOD_8 ( ) ; org . elasticsearch . common . IDENT_10 . IDENT_11 actual = fixture . METHOD_9 ( event ) ; com . google . gson . IDENT_12 parser = new com . google . gson . METHOD_10 ( ) ; "<AssertPlaceHolder>" ; } parse ( java . util . List ) { java . util . List < java . util . Map < java . lang . String , java . lang . Object > > IDENT_13 = new java . util . ArrayList < java . util . Map < java . lang . String , java . lang . Object > > ( ) ; if ( ! ( org . apache . commons . collections . IDENT_14 . isEmpty ( events ) ) ) { for ( org . apache . IDENT_3 . IDENT_6 event : events ) { IDENT_13 . add ( METHOD_11 ( event ) ) ; } } return IDENT_13 ; }
org . junit . Assert . assertEquals ( parser . parse ( expected . string ( ) ) , parser . parse ( actual . string ( ) ) )