This tests for a bug when a selection is replaced by content with selectReplacement == true. Below, you should see 'A new link' and 'link' should be selected.

A new link