Fixed IMap replace() always generating ADDED events.
This should only ever generate UPDATED events if successful.
This seems to have regressed in Hazelcast 3.0.
Hazelcast 2.x seems to have only generated UPDATED events, see https://github.com/hazelcast/hazelcast/issues/418
Added a test that verifies that the old behavior is broken and the new behavior works.
Use assertTrueEventually in the test, as events may be delayed.
Added proper comment
Merge pull request #2672 from cszmajda/fix/3.x/map-replace-events

Fixed IMap replace() always generating ADDED events.