METHOD_0 ( ) { java . lang . String [ ] list = new java . lang . String [ ] { STRING_0 , STRING_1 , STRING_2 , STRING_3 , STRING_4 , STRING_5 } ; java . util . Map < java . lang . String , java . lang . String > expResult = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; expResult . put ( STRING_0 , STRING_1 ) ; expResult . put ( STRING_2 , STRING_3 ) ; expResult . put ( STRING_4 , STRING_5 ) ; java . util . Map < java . lang . String , java . lang . String > result = com . IDENT_0 . IDENT_1 . commons . util . IDENT_2 . METHOD_1 ( list ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( T [ ] ) { final java . util . HashMap < T , T > map = new java . util . HashMap < T , T > ( ) ; if ( list == null ) { return map ; } if ( ( ( list . length ) > 0 ) && ( ( ( list . length ) OP_0 2 ) == 1 ) ) { throw new java . lang . IllegalArgumentException ( STRING_6 ) ; } for ( int i = 0 ; i < ( list . length ) ; i = i + 2 ) { map . put ( list [ i ] , list [ ( i + 1 ) ] ) ; } return map ; }
org . junit . Assert . assertEquals ( expResult , result )