### Question:
SpitterMailServiceImpl implements SpitterMailService { public void sendRichEmailWithThymeleaf(String to, Spittle spittle) throws MessagingException { MimeMessage message = mailSender.createMimeMessage(); MimeMessageHelper helper = new MimeMessageHelper(message, true); String spitterName = spittle.getSpitter().getFullName(); helper.setFrom("noreply@spitter.com"); helper.setTo(to); helper.setSubject("New spittle from " + spitterName); Context context = new Context(); context.setVariable("spitterName", spitterName); context.setVariable("spittleText", spittle.getText()); String emailText = thymeleaf.process("emailTemplate.html", context); helper.setText(emailText, true); ClassPathResource couponImage = new ClassPathResource("/collateral/coupon.jpg"); helper.addInline("spitterLogo", couponImage); mailSender.send(message); } @Autowired  SpitterMailServiceImpl(JavaMailSender mailSender); @Override void sendSimpleSpittleEmail(String to, Spittle spittle); @Override void sendSpittleEmailWithAttachment(String to, Spittle spittle); void sendRichEmail(String to, Spittle spittle); void sendRichEmailWithVelocity(String to, Spittle spittle); void sendRichEmailWithThymeleaf(String to, Spittle spittle);  }### Answer:
@Test public void sendRichEmailWithThymeleaf() throws Exception { mailService.sendRichEmailWithThymeleaf(toEmail, spittle()); }