swapValues() returns swapped "copy".

Test case has been adapted.