@Test void testShutDownOfResources() throws Exception { AmazonSimpleEmailService emailService = mock(AmazonSimpleEmailService.class); SimpleEmailServiceMailSender mailSender = new SimpleEmailServiceMailSender( emailService); mailSender.destroy(); verify(emailService, times(1)).shutdown(); }
@Override public final void destroy() throws Exception { getEmailService().shutdown(); }
SimpleEmailServiceMailSender implements MailSender, DisposableBean { @Override public final void destroy() throws Exception { getEmailService().shutdown(); } }
SimpleEmailServiceMailSender implements MailSender, DisposableBean { @Override public final void destroy() throws Exception { getEmailService().shutdown(); } SimpleEmailServiceMailSender(
			AmazonSimpleEmailService amazonSimpleEmailService); }
SimpleEmailServiceMailSender implements MailSender, DisposableBean { @Override public final void destroy() throws Exception { getEmailService().shutdown(); } SimpleEmailServiceMailSender(
			AmazonSimpleEmailService amazonSimpleEmailService); @Override void send(SimpleMailMessage simpleMailMessage); @SuppressWarnings("OverloadedVarargsMethod") @Override void send(SimpleMailMessage... simpleMailMessages); @Override final void destroy(); }
SimpleEmailServiceMailSender implements MailSender, DisposableBean { @Override public final void destroy() throws Exception { getEmailService().shutdown(); } SimpleEmailServiceMailSender(
			AmazonSimpleEmailService amazonSimpleEmailService); @Override void send(SimpleMailMessage simpleMailMessage); @SuppressWarnings("OverloadedVarargsMethod") @Override void send(SimpleMailMessage... simpleMailMessages); @Override final void destroy();  }