// Given
String to = "sqs-test@example.org";
String subject = "TEST: testEmailDelivery()";
String message = "Simple message from SQS email test";
SQSTaskTimerBean.scheduleTask(new SendEmailTask(new EmailDescription(to, message, subject)),
new SQS("http://localhost:" + ELASTIMQ_PORT, "1234", "1234").getQueueByName(TEST_QUEUE));
sendEmail();
// Then
assertThat(emailServer.getReceivedEmailSize()).isEqualTo(1);