METHOD_0 ( ) { net . IDENT_0 . packet . IDENT_1 IDENT_2 = new net . IDENT_0 . packet . METHOD_1 ( ) . METHOD_2 ( STRING_0 ) . METHOD_3 ( STRING_1 ) . METHOD_4 ( org . IDENT_3 . IDENT_4 . types . IDENT_5 . of ( 0 ) ) ; byte [ ] expected = new byte [ ] { ( ( byte ) ( INT_0 ) ) , ( ( byte ) ( INT_1 ) ) , ( ( byte ) ( INT_2 ) ) , ( ( byte ) ( INT_3 ) ) , ( ( byte ) ( INT_0 ) ) , ( ( byte ) ( INT_1 ) ) , ( ( byte ) ( INT_2 ) ) , ( ( byte ) ( INT_3 ) ) , ( ( byte ) ( INT_0 ) ) , ( ( byte ) ( INT_1 ) ) , ( ( byte ) ( INT_2 ) ) , ( ( byte ) ( INT_3 ) ) , 0 , 0 } ; "<AssertPlaceHolder>" ; } serialize ( ) { METHOD_5 ( ) ; int IDENT_6 = 0 ; for ( net . IDENT_0 . packet . IDENT_7 IDENT_8 : this . options ) { if ( ( ( IDENT_8 . getCode ( ) ) == 0 ) || ( ( IDENT_8 . getCode ( ) ) == ( ( byte ) ( 255 ) ) ) ) { IDENT_6 += 1 ; } else { IDENT_6 += 2 + ( 255 & ( IDENT_8 . METHOD_6 ( ) ) ) ; } } int IDENT_9 = 0 ; if ( IDENT_6 < INT_4 ) IDENT_9 = INT_4 - IDENT_6 ; byte [ ] data = new byte [ ( INT_5 + IDENT_6 ) + IDENT_9 ] ; java . nio . ByteBuffer IDENT_10 = java . nio . ByteBuffer . METHOD_7 ( data ) ; IDENT_10 . put ( this . IDENT_11 ) ; IDENT_10 . put ( this . IDENT_12 ) ; IDENT_10 . put ( this . IDENT_13 ) ; IDENT_10 . put ( this . IDENT_14 ) ; IDENT_10 . METHOD_8 ( this . IDENT_15 ) ; IDENT_10 . METHOD_9 ( this . IDENT_16 ) ; IDENT_10 . METHOD_9 ( this . IDENT_17 ) ; IDENT_10 . METHOD_8 ( this . IDENT_18 . METHOD_10 ( ) ) ; IDENT_10 . METHOD_8 ( this . IDENT_19 . METHOD_10 ( ) ) ; IDENT_10 . METHOD_8 ( this . IDENT_20 . METHOD_10 ( ) ) ; IDENT_10 . METHOD_8 ( this . IDENT_21 . METHOD_10 ( ) ) ; IDENT_10 . put ( this . IDENT_22 . getBytes ( ) ) ; if ( ( this . IDENT_22 . METHOD_6 ( ) ) < 16 ) { for ( int i = 0 ; i < ( 16 - ( this . IDENT_22 . METHOD_6 ( ) ) ) ; ++ i ) { IDENT_10 . put ( ( ( byte ) ( 0 ) ) ) ; } } METHOD_11 ( this . IDENT_23 , IDENT_10 , INT_6 ) ; METHOD_11 ( this . IDENT_24 , IDENT_10 , INT_7 ) ; IDENT_10 . put ( ( ( byte ) ( INT_8 ) ) ) ; IDENT_10 . put ( ( ( byte ) ( INT_9 ) ) ) ; IDENT_10 . put ( ( ( byte ) ( INT_10 ) ) ) ; IDENT_10 . put ( ( ( byte ) ( INT_8 ) ) ) ; for ( net . IDENT_0 . packet . IDENT_7 IDENT_8 : this . options ) { int code = ( IDENT_8 . getCode ( ) ) & 255 ; IDENT_10 . put ( ( ( byte ) ( code ) ) ) ; if ( ( code != 0 ) && ( code != 255 ) ) { IDENT_10 . put ( IDENT_8 . METHOD_6 ( ) ) ; IDENT_10 . put ( IDENT_8 . METHOD_12 ( ) ) ; } } return data ; }
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( expected , IDENT_2 . serialize ( ) ) )