METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . protocol . IDENT_2 protocol = com . IDENT_0 . IDENT_1 . protocol . IDENT_3 . IDENT_4 . instance ; com . IDENT_0 . IDENT_1 . protocol . messages . IDENT_5 response = new com . IDENT_0 . IDENT_1 . protocol . messages . METHOD_1 ( com . IDENT_0 . IDENT_1 . protocol . IDENT_6 . IDENT_7 , "test" ) ; java . nio . ByteBuffer expected = java . nio . ByteBuffer . METHOD_2 ( 10 ) ; expected . put ( protocol . METHOD_3 ( ) ) ; expected . put ( IDENT_8 . IDENT_9 . METHOD_4 ( ) ) ; expected . METHOD_5 ( ( ( short ) ( 1 ) ) ) ; expected . METHOD_5 ( response . METHOD_6 ( ) ) ; expected . put ( response . getMessage ( ) . getBytes ( ) ) ; byte [ ] bytes = protocol . serialize ( response ) ; "<AssertPlaceHolder>" ; } serialize ( int ) { com . IDENT_0 . IDENT_1 . protocol . data . IDENT_10 IDENT_11 = new com . IDENT_0 . IDENT_1 . protocol . data . METHOD_7 ( IDENT_12 ) ; IDENT_11 . METHOD_8 ( IDENT_13 . size ( ) ) ; for ( byte key : IDENT_13 . METHOD_9 ( ) ) { com . IDENT_0 . IDENT_1 . protocol . data . IDENT_14 data = IDENT_13 . get ( key ) ; IDENT_11 . METHOD_10 ( key ) ; com . IDENT_0 . IDENT_1 . protocol . data . IDENT_15 . METHOD_11 ( data , IDENT_11 ) ; } return IDENT_11 . toArray ( ) ; }
org . junit . Assert . assertArrayEquals ( expected . array ( ) , bytes )