METHOD_0 ( ) { java . util . List < java . lang . Object > list = new com . baeldung . java . list . METHOD_1 ( ) ; list . add ( STRING_0 ) ; java . lang . String [ ] input = new java . lang . String [ 1 ] ; java . lang . String [ ] output = list . toArray ( input ) ; "<AssertPlaceHolder>" ; } toArray ( T [ ] ) { if ( ( array . length ) < ( internal . length ) ) { return ( ( T [ ] ) ( java . util . Arrays . METHOD_2 ( internal , internal . length , array . getClass ( ) ) ) ) ; } java . lang . System . METHOD_3 ( internal , 0 , array , 0 , internal . length ) ; if ( ( array . length ) > ( internal . length ) ) { array [ internal . length ] = null ; } return array ; }
org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { STRING_0 } , input )