How to set up site e-mail configuration for tests

I have a method on a class that send an e-mail, it works. Now I want to create tests. How can I set up site configuration for testing this unit?


There is a Mock Mailhost testing Layer which you can use as base of your testing Layer. See