Chapter 1, Page 7: The First Step in Refactoring: Whenever I do refactoring, the first step is always the same. I need to build a solid set of tests for that section of code.
From Martin Fowler’s Refactoring book via Forgotten Refactorings