test ( ) { name . IDENT_0 . IDENT_1 . util . IDENT_2 < java . lang . String , java . lang . Object > map = new name . IDENT_0 . IDENT_1 . util . IDENT_2 < java . lang . String , java . lang . Object > ( ) ; java . lang . String key = STRING_0 ; map . put ( key , STRING_1 ) ; map . put ( key , STRING_2 ) ; "<AssertPlaceHolder>" ; } put ( IDENT_3 , IDENT_4 ) { IDENT_4 result ; name . IDENT_0 . IDENT_1 . util . IDENT_2 < IDENT_3 , IDENT_4 > . Entry < IDENT_3 , IDENT_4 > entry = new Entry < IDENT_3 , IDENT_4 > ( key , value ) ; int index = entrySet . indexOf ( entry ) ; if ( index != ( - 1 ) ) { result = entrySet . get ( index ) . getValue ( ) ; entrySet . get ( index ) . setValue ( value ) ; } else { entrySet . add ( entry ) ; result = null ; } return result ; }
org . junit . Assert . assertEquals ( STRING_2 , map . get ( key ) )