<oldText>
Testing <a href="http://google.com">Link Changes</a>
And when the link <a href="http://samelink.com">stays the same</a>
</oldText>

<newText>
Testing <a href="http://caxy.com">Link Changes</a>
And when the link <a href="http://samelink.com">stays the same</a>
</newText>

<expected>
Testing <del class="diffmod diff-href"><a href="http://google.com">Link Changes</a></del><ins class="diffmod diff-href"><a href="http://caxy.com">Link Changes</a></ins>
 And when the link <a href="http://samelink.com">stays the same</a>
</expected>