Some examples of writing unit tests for services that send emails.