METHOD_0 ( ) { IDENT_0 . amazon . IDENT_1 . TestUtils utils = new IDENT_0 . amazon . IDENT_1 . TestUtils ( IDENT_2 ) ; java . util . IDENT_3 IDENT_4 = new java . util . METHOD_1 ( IDENT_2 ) ; java . util . List < IDENT_0 . amazon . IDENT_1 . Message > expected = java . util . stream . IDENT_5 . range ( 0 , INT_0 ) . METHOD_2 ( ( x ) -> utils . METHOD_3 ( ) ) . collect ( java . util . stream . IDENT_6 . toList ( ) ) ; java . io . ByteArrayOutputStream IDENT_7 = new java . io . ByteArrayOutputStream ( ) ; expected . METHOD_4 ( ( x ) -> x . encode ( IDENT_7 ) ) ; java . nio . ByteBuffer buf = java . nio . ByteBuffer . METHOD_5 ( IDENT_7 . toByteArray ( ) ) ; java . util . List < IDENT_0 . amazon . IDENT_1 . Message > actual = new java . util . ArrayList ( ) ; IDENT_0 . amazon . IDENT_1 . IDENT_8 IDENT_9 = new IDENT_0 . amazon . IDENT_1 . METHOD_6 ( actual :: add ) ; while ( ( buf . METHOD_7 ( ) ) > 0 ) { int IDENT_10 = java . lang . Math . min ( ( 1 + ( IDENT_4 . METHOD_8 ( INT_1 ) ) ) , buf . METHOD_7 ( ) ) ; byte [ ] IDENT_11 = new byte [ IDENT_10 ] ; buf . get ( IDENT_11 ) ; IDENT_9 . METHOD_9 ( IDENT_11 ) ; } "<AssertPlaceHolder>" ; } METHOD_9 ( java . nio . ByteBuffer ) { int IDENT_12 = IDENT_13 . METHOD_7 ( ) ; int IDENT_14 = 0 ; while ( IDENT_14 < IDENT_12 ) { java . nio . ByteBuffer IDENT_15 = METHOD_10 ( ) ; if ( ( IDENT_16 ) == null ) { int IDENT_17 = java . lang . Math . min ( ( 15 - ( IDENT_15 . METHOD_7 ( ) ) ) , ( IDENT_12 - IDENT_14 ) ) ; METHOD_11 ( IDENT_13 , IDENT_17 ) ; IDENT_14 += IDENT_17 ; IDENT_15 = METHOD_10 ( ) ; if ( ( IDENT_15 . METHOD_7 ( ) ) >= 15 ) { IDENT_16 = IDENT_0 . amazon . IDENT_1 . IDENT_18 . decode ( IDENT_15 . METHOD_12 ( ) ) ; if ( ( buf . METHOD_13 ( ) ) < ( IDENT_16 . METHOD_14 ( ) ) ) { buf = java . nio . ByteBuffer . METHOD_15 ( IDENT_16 . METHOD_14 ( ) ) ; buf . put ( IDENT_15 ) ; IDENT_15 = METHOD_10 ( ) ; } } } if ( ( IDENT_16 ) != null ) { int IDENT_17 = java . lang . Math . min ( ( ( IDENT_16 . METHOD_14 ( ) ) - ( IDENT_15 . METHOD_7 ( ) ) ) , ( IDENT_12 - IDENT_14 ) ) ; METHOD_11 ( IDENT_13 , IDENT_17 ) ; IDENT_14 += IDENT_17 ; IDENT_15 = METHOD_10 ( ) ; if ( ( IDENT_15 . METHOD_7 ( ) ) >= ( IDENT_16 . METHOD_14 ( ) ) ) { IDENT_19 . accept ( IDENT_0 . amazon . IDENT_1 . Message . decode ( IDENT_16 , IDENT_15 ) ) ; buf . METHOD_16 ( ) ; IDENT_16 = null ; } } } return this ; }
org . junit . Assert . assertEquals ( expected , actual )