METHOD_0 ( ) { byte [ ] expected = new byte [ ] { INT_0 , 0 , 0 , 20 , INT_1 , INT_2 , 0 , 0 , INT_3 , 6 , INT_4 , INT_5 , ( ( byte ) ( INT_6 ) ) , INT_7 , INT_8 , ( ( byte ) ( INT_9 ) ) , ( ( byte ) ( INT_10 ) ) , INT_11 , INT_8 , INT_12 } ; net . IDENT_0 . packet . IDENT_1 packet = new net . IDENT_0 . packet . METHOD_1 ( ) . METHOD_2 ( ( ( short ) ( INT_13 ) ) ) . METHOD_3 ( ( ( byte ) ( INT_3 ) ) ) . METHOD_4 ( org . IDENT_2 . IDENT_3 . types . IDENT_4 . of ( ( ( byte ) ( 6 ) ) ) ) . METHOD_5 ( STRING_0 ) . METHOD_6 ( STRING_1 ) ; byte [ ] actual = packet . serialize ( ) ; "<AssertPlaceHolder>" ; } serialize ( ) { byte [ ] IDENT_5 = null ; if ( ( payload ) != null ) { payload . METHOD_7 ( this ) ; IDENT_5 = payload . serialize ( ) ; } int length = ( net . IDENT_0 . packet . IDENT_6 . IDENT_7 ) + ( IDENT_5 == null ? 0 : IDENT_5 . length ) ; byte [ ] data = new byte [ length ] ; java . nio . ByteBuffer IDENT_8 = java . nio . ByteBuffer . METHOD_8 ( data ) ; IDENT_8 . put ( net . IDENT_0 . packet . IDENT_6 . IDENT_9 ) ; IDENT_8 . METHOD_9 ( IDENT_10 ) ; byte IDENT_11 = ( ( byte ) ( ( IDENT_12 ) ? 1 : 0 ) ) ; byte IDENT_13 = ( ( byte ) ( ( IDENT_14 ) ? 1 : 0 ) ) ; byte IDENT_15 = ( ( byte ) ( ( ( ( ( ( command ) & 3 ) << 6 ) | ( ( IDENT_11 & 1 ) << 5 ) ) | ( ( IDENT_13 & 1 ) << 4 ) ) | ( ( IDENT_16 ) & 15 ) ) ) ; IDENT_8 . put ( IDENT_15 ) ; if ( IDENT_5 != null ) { IDENT_8 . put ( IDENT_5 ) ; } return data ; }
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( expected , actual ) )