Often when I’m working near the top of the test automation pyramid, I find myself needing to test interactions with outside services such as SMTP servers. On projects in the past, I’ve been able to leverage java tools such as greenmail, which lets me have logic like this. public class MailerTest { private Greenmail greenmail @Before public void startGreenmail() { greenMail = new GreenMail(); green