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 ) ) ; byte [ ] data = IDENT_7 . toByteArray ( ) ; int IDENT_8 = data . length ; int read = 0 ; java . util . List < IDENT_0 . amazon . IDENT_1 . Message > actual = new java . util . ArrayList ( ) ; IDENT_0 . amazon . IDENT_1 . IDENT_9 IDENT_10 = new IDENT_0 . amazon . IDENT_1 . METHOD_5 ( actual :: add ) ; while ( IDENT_8 > 0 ) { int length = IDENT_4 . METHOD_6 ( 100 ) ; if ( ( read + length ) > ( data . length ) ) { length = ( data . length ) - read ; } IDENT_10 . METHOD_7 ( data , read , length ) ; read += length ; IDENT_8 OP_0 length ; } "<AssertPlaceHolder>" ; } METHOD_7 ( byte [ ] , int , int ) { METHOD_7 ( java . nio . ByteBuffer . METHOD_8 ( bytes , offset , length ) ) ; }
org . junit . Assert . assertEquals ( expected , actual )