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