METHOD_0 ( ) { final java . lang . String message = STRING_0 ; final java . util . Map < java . lang . String , java . lang . String > headers = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; headers . put ( STRING_0 , STRING_1 ) ; final java . lang . String IDENT_0 = STRING_2 ; final byte [ ] expected = STRING_3 . getBytes ( IDENT_0 ) ; com . IDENT_1 . IDENT_2 . plugins . handler . IDENT_3 handler = new com . IDENT_1 . IDENT_2 . plugins . handler . METHOD_1 ( IDENT_0 ) ; org . apache . IDENT_2 . IDENT_4 event = org . apache . IDENT_2 . event . IDENT_5 . METHOD_2 ( message , java . nio . IDENT_0 . IDENT_6 . METHOD_3 ( IDENT_0 ) , headers ) ; byte [ ] IDENT_7 = handler . getBytes ( event ) ; "<AssertPlaceHolder>" ; } getBytes ( org . apache . IDENT_2 . IDENT_4 ) { com . google . gson . IDENT_8 body = new com . google . gson . METHOD_4 ( new java . lang . String ( event . METHOD_5 ( ) , IDENT_0 ) ) ; com . google . gson . IDENT_9 obj = new com . google . gson . METHOD_6 ( ) ; obj . add ( STRING_4 , body ) ; if ( ! ( event . METHOD_7 ( ) . isEmpty ( ) ) ) { com . google . gson . METHOD_6 headers = new com . google . gson . METHOD_6 ( ) ; for ( Map . Entry < java . lang . String , java . lang . String > header : event . METHOD_7 ( ) . entrySet ( ) ) { headers . add ( header . getKey ( ) , new com . google . gson . METHOD_4 ( header . getValue ( ) ) ) ; } obj . add ( STRING_5 , headers ) ; } return gson . METHOD_8 ( obj ) . getBytes ( IDENT_0 ) ; }
org . junit . Assert . assertArrayEquals ( expected , IDENT_7 )