@Test
public void sendEmailSingleInvalidAddressTest() throws Exception {

    CompletableFuture<Set<String>> cf = es.sendEmail(SUBJECT_LINE, HTML_MESSAGE, "badAddress");
    Set<String> failedEmails = cf.get();
    assertEquals(1, failedEmails.size());
    assertEquals("badAddress", failedEmails.iterator().next());
}