AmazonEmailer implements Emailer { @Override public void send(String subject, String body, String... recipients) { Body requestBody = new Body().withText(new Content(body)); sendEmail(subject, requestBody, recipients); } AmazonEmailer(AmazonSimpleEmailService emailService,
                         String fromAddress); @Override void send(String subject, String body, String... recipients); @Override void sendAsHtml(String subject, String body, String... recipients);  }
@Test public void testSend() throws Exception { Capture capturedRequest = createSendMockExpectation(); String subject = "subject"; String body = "body text"; String[] recipients = {"x@y.com"}; emailer.send(subject, body, recipients); boolean asHtml = false; verifyRequest(capturedRequest, subject, body, recipients, asHtml); }