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 . data . IDENT_5 IDENT_6 = new com . IDENT_0 . IDENT_1 . protocol . data . METHOD_1 ( ) ; IDENT_6 . set ( ( ( byte ) ( 1 ) ) , true ) ; IDENT_6 . set ( ( ( byte ) ( 2 ) ) , ( ( byte ) ( INT_0 ) ) ) ; com . IDENT_0 . IDENT_1 . protocol . messages . IDENT_7 IDENT_8 = new com . IDENT_0 . IDENT_1 . protocol . messages . METHOD_2 ( ( ( short ) ( 1 ) ) , IDENT_6 ) ; java . nio . ByteBuffer expected = java . nio . ByteBuffer . METHOD_3 ( INT_1 ) ; expected . put ( protocol . METHOD_4 ( ) ) ; expected . put ( IDENT_8 . METHOD_5 ( ) . METHOD_6 ( ) ) ; expected . METHOD_7 ( ( ( short ) ( 1 ) ) ) ; expected . METHOD_8 ( 2 ) ; expected . put ( ( ( byte ) ( 1 ) ) ) ; expected . put ( IDENT_9 . IDENT_10 . METHOD_6 ( ) ) ; expected . put ( ( ( byte ) ( 1 ) ) ) ; expected . put ( ( ( byte ) ( 2 ) ) ) ; expected . put ( IDENT_9 . IDENT_11 . METHOD_6 ( ) ) ; expected . put ( ( ( byte ) ( INT_0 ) ) ) ; byte [ ] bytes = protocol . serialize ( IDENT_8 ) ; "<AssertPlaceHolder>" ; } serialize ( int ) { com . IDENT_0 . IDENT_1 . protocol . data . IDENT_12 IDENT_13 = new com . IDENT_0 . IDENT_1 . protocol . data . METHOD_9 ( IDENT_14 ) ; IDENT_13 . METHOD_10 ( IDENT_15 . size ( ) ) ; for ( byte key : IDENT_15 . METHOD_11 ( ) ) { com . IDENT_0 . IDENT_1 . protocol . data . IDENT_16 data = IDENT_15 . get ( key ) ; IDENT_13 . METHOD_12 ( key ) ; com . IDENT_0 . IDENT_1 . protocol . data . IDENT_17 . METHOD_13 ( data , IDENT_13 ) ; } return IDENT_13 . toArray ( ) ; }
org . junit . Assert . assertArrayEquals ( expected . array ( ) , bytes )