How to turn dependencies around so you can write code that is testable. Includes an example of testing networking code.