METHOD_0 ( ) { final java . nio . IDENT_0 . IDENT_1 channel = new org . apache . hc . core5 . http . METHOD_1 ( new java . lang . String [ ] { STRING_0 } , java . nio . IDENT_2 . IDENT_3 . IDENT_4 ) ; final org . apache . hc . core5 . http . nio . IDENT_5 IDENT_6 = new org . apache . hc . core5 . http . impl . nio . METHOD_2 ( INT_0 , INT_1 , 0 , java . nio . IDENT_2 . IDENT_3 . IDENT_4 ) ; final org . apache . hc . core5 . http . impl . IDENT_7 metrics = new org . apache . hc . core5 . http . impl . METHOD_3 ( ) ; final org . apache . hc . core5 . http . impl . nio . IDENT_8 IDENT_9 = new org . apache . hc . core5 . http . impl . nio . METHOD_4 ( channel , IDENT_6 , metrics , 20 ) ; final java . nio . ByteBuffer IDENT_10 = java . nio . ByteBuffer . METHOD_5 ( INT_0 ) ; final int IDENT_11 = IDENT_9 . read ( IDENT_10 ) ; "<AssertPlaceHolder>" ; IDENT_9 . read ( IDENT_10 ) ; } read ( java . nio . IDENT_0 . IDENT_1 ) { for ( ; ; ) { switch ( state ) { case IDENT_12 : if ( ( buffer . METHOD_6 ( ) ) >= ( org . apache . hc . core5 . IDENT_13 . IDENT_14 . IDENT_15 . IDENT_16 ) ) { final int IDENT_17 = buffer . METHOD_7 ( ) ; IDENT_18 = IDENT_17 > > 8 ; if ( ( IDENT_18 ) > ( IDENT_19 ) ) { throw new org . apache . hc . core5 . IDENT_13 . METHOD_8 ( org . apache . hc . core5 . IDENT_13 . IDENT_20 . IDENT_21 , STRING_1 ) ; } type = IDENT_17 & 255 ; IDENT_22 = buffer . get ( ) ; IDENT_23 = java . lang . Math . METHOD_9 ( buffer . METHOD_7 ( ) ) ; state = org . apache . hc . core5 . IDENT_13 . impl . nio . IDENT_24 . IDENT_25 . IDENT_26 ; } else { break ; } case IDENT_26 : if ( ( buffer . METHOD_6 ( ) ) >= ( IDENT_18 ) ) { if ( ( ( IDENT_22 ) & ( IDENT_27 . IDENT_28 . getValue ( ) ) ) > 0 ) { if ( ( IDENT_18 ) == 0 ) { throw new org . apache . hc . core5 . IDENT_13 . METHOD_8 ( org . apache . hc . core5 . IDENT_13 . IDENT_20 . IDENT_29 , STRING_2 ) ; } buffer . METHOD_10 ( ) ; final int IDENT_30 = buffer . get ( ) ; if ( ( IDENT_18 ) < ( IDENT_30 + 1 ) ) { throw new org . apache . hc . core5 . IDENT_13 . METHOD_8 ( org . apache . hc . core5 . IDENT_13 . IDENT_20 . IDENT_29 , STRING_2 ) ; } buffer . METHOD_11 ( ) ; } final java . nio . ByteBuffer payload = ( ( IDENT_18 ) > 0 ) ? java . nio . ByteBuffer . METHOD_12 ( bytes , buffer . position ( ) , IDENT_18 ) : null ; buffer . position ( ( ( buffer . position ( ) ) + ( IDENT_18 ) ) ) ; state = org . apache . hc . core5 . IDENT_13 . impl . nio . IDENT_24 . IDENT_25 . IDENT_12 ; metrics . METHOD_13 ( ) ; return new org . apache . hc . core5 . IDENT_13 . IDENT_14 . METHOD_14 ( type , IDENT_22 , IDENT_23 , payload ) ; } } if ( buffer . METHOD_15 ( ) ) { buffer . METHOD_16 ( ) ; } else { buffer . METHOD_17 ( ) ; } final int IDENT_11 = channel . read ( buffer ) ; buffer . METHOD_18 ( ) ; if ( IDENT_11 > 0 ) { metrics . METHOD_19 ( IDENT_11 ) ; } if ( IDENT_11 == 0 ) { break ; } else if ( IDENT_11 < 0 ) { if ( ( ( state ) != ( org . apache . hc . core5 . IDENT_13 . impl . nio . IDENT_24 . IDENT_25 . IDENT_12 ) ) || ( buffer . METHOD_15 ( ) ) ) { throw new org . apache . hc . core5 . IDENT_13 . METHOD_20 ( STRING_3 ) ; } else { throw new org . apache . hc . core5 . http . METHOD_21 ( ) ; } } } return null ; }
org . junit . Assert . assertEquals ( 10 , IDENT_11 )