Have a factory method return a sender object.
Distinguish between development and test environments.