testSenderUser.setId(new ObjectId());
emailService.sendConnectionBrokenEmail(mockConnection);
ArgumentCaptor<SendEmailRequest> captor = ArgumentCaptor.forClass(SendEmailRequest.class);
verify(mockAmazonSimpleEmailServiceClient).sendEmail(captor.capture());
Body body = captor.getValue().getMessage().getBody();
String htmlContent = body.getHtml().getData();
String textContent = body.getText().getData();
Assert.assertFalse("Encountered unexpanded template token.", htmlContent.contains("${"));
Assert.assertFalse("Encountered unexpanded template token.", textContent.contains("${"));
}