Improved TDD test case for swapWithNext, JUnit code will first clear the text file, add two entries, swap them. Then it will executeDisplay and compare whether the swap has actually taken place