5051525354555657
ApplicationConfig config; @Before public void setUpServices() { mailSender = new MockJavaMailSender(); mailService = new MailSenderServiceImpl(mailSender, velocityEngine); ((MailSenderServiceImpl)mailService).setConfig(config); }