METHOD_0 ( ) { java . lang . Object value = java . util . Arrays . asList ( STRING_0 , STRING_1 , STRING_2 , 4 , FLOAT_0 , INT_0 , new java . lang . Integer ( 7 ) , new java . lang . Long ( 8 ) ) ; java . lang . String [ ] expResult = new java . lang . String [ ] { STRING_0 , STRING_1 , STRING_2 , STRING_3 , STRING_4 , STRING_5 , STRING_6 , STRING_7 } ; java . lang . String [ ] result = com . IDENT_0 . IDENT_1 . commons . IDENT_2 . util . IDENT_3 . METHOD_1 ( value ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . Object ) { if ( value == null ) { return new java . lang . String [ 0 ] ; } else if ( value instanceof java . lang . String [ ] ) { return ( ( java . lang . String [ ] ) ( value ) ) ; } else if ( value . getClass ( ) . METHOD_2 ( ) ) { java . util . List < java . lang . String > values = ( ( java . util . List ) ( java . util . Arrays . asList ( ( ( java . lang . Object [ ] ) ( value ) ) ) . stream ( ) . map ( String :: valueOf ) . collect ( java . util . stream . IDENT_4 . toList ( ) ) ) ) ; return ( ( java . lang . String [ ] ) ( values . toArray ( new java . lang . String [ 0 ] ) ) ) ; } else if ( value instanceof java . util . Collection ) { java . util . List < java . lang . String > values = ( ( java . util . List ) ( ( ( java . util . Collection ) ( value ) ) . stream ( ) . map ( String :: valueOf ) . collect ( java . util . stream . IDENT_4 . toList ( ) ) ) ) ; return ( ( java . lang . String [ ] ) ( values . toArray ( new java . lang . String [ 0 ] ) ) ) ; } else { return new java . lang . String [ ] { value . toString ( ) } ; } }
org . junit . Assert . assertArrayEquals ( expResult , result )