METHOD_0 ( ) { java . util . List < java . lang . Integer > list = com . IDENT_0 . stream . IDENT_1 . range ( 0 , 6 ) . collect ( com . IDENT_0 . stream . IDENT_2 . < java . lang . Integer > METHOD_1 ( ) ) ; "<AssertPlaceHolder>" ; try { list . add ( 1 ) ; org . junit . Assert . fail ( STRING_0 ) ; } catch ( java . lang . IDENT_3 expected ) { } try { list . METHOD_2 ( ) ; org . junit . Assert . fail ( STRING_1 ) ; } catch ( java . lang . IDENT_3 expected ) { } try { list . METHOD_3 ( 1 , 2 ) . METHOD_2 ( ) ; org . junit . Assert . fail ( STRING_2 ) ; } catch ( java . lang . IDENT_3 expected ) { } } collect ( com . IDENT_0 . stream . IDENT_4 ) { IDENT_5 container = IDENT_6 . METHOD_4 ( ) . get ( ) ; while ( iterator . hasNext ( ) ) { final T value = iterator . next ( ) ; IDENT_6 . METHOD_5 ( ) . accept ( container , value ) ; } return IDENT_6 . METHOD_6 ( ) . apply ( container ) ; }
org . junit . Assert . assertThat ( list , is ( java . util . Arrays . asList ( 0 , 1 , 2 , 3 , 4 , 5 ) ) )