1.Write an acceptance test
- Identify the side effect, in our case (printing all the account transactions)
- Mock the external world (the console in this simple example), and use the real implementation of your system's classes
- Identify the trigger (the account printStatement method)