assertThat(email.getHeaderValue("From")).isEqualTo(EMAIL_FROM);
assertThat(email.getHeaderValue("Content-Type")).contains("UTF-8");
}
private void sendEmail() throws Exception {
D.withDependencies(new SendEmailTaskExecutor(), mock(BoundRequestContext.class), new Callable<Void>() {
@Override
public Void call() throws Exception {
// Actually gets sent to SQS, might take some time to receive it
for (int i = 0; i < 10; i++) {
Thread.sleep(1000);