METHOD_0 ( ) { java . util . List < java . lang . Integer > list = new java . util . ArrayList ( java . util . Arrays . asList ( 2 , 5 , 7 , 3 , 5 , 6 ) ) ; java . util . Collections . METHOD_1 ( list , 2 ) ; "<AssertPlaceHolder>" ; } toArray ( T [ ] ) { if ( isEmpty ( ) ) { if ( ( a . length ) > 0 ) { a [ 0 ] = null ; } return a ; } int size = size ( ) ; if ( size > ( a . length ) ) { a = ( ( T [ ] ) ( java . lang . reflect . IDENT_0 . newInstance ( a . getClass ( ) . METHOD_2 ( ) , size ) ) ) ; } else if ( size < ( a . length ) ) { a [ size ] = null ; } if ( ( IDENT_1 ) < ( IDENT_2 ) ) { java . lang . System . METHOD_3 ( array , IDENT_1 , a , 0 , size ) ; } else { java . lang . System . METHOD_3 ( array , IDENT_1 , a , 0 , ( ( array . length ) - ( IDENT_1 ) ) ) ; java . lang . System . METHOD_3 ( array , 0 , a , ( ( array . length ) - ( IDENT_1 ) ) , IDENT_2 ) ; } return a ; }
org . junit . Assert . assertArrayEquals ( new java . lang . Integer [ ] { 5 , 6 , 2 , 5 , 7 , 3 } , list . toArray ( new java . lang . Integer [ 0 ] ) )