MailTemplateConfig { public String toDefaultTemplatePath(String templatePath) { return templatePath + ".default"; }  @Bean Expression activationEmailTemplate(); @Bean Expression newProjectEmailTemplate(); @Bean Expression ideaCreatedEmailTemplate(); @Bean Expression ideaAcceptedEmailTemplate(); @Bean Expression ideaRejectedEmailTemplate(); @Bean Expression passwordForgottenEmailTemplate(); @Bean Expression projectPublishedEmailTemplate(); @Bean Expression projectRejectedEmailTemplate(); @Bean Expression projectDeferredEmailTemplate(); @Bean Expression projectModifiedEmailTemplate(); @Bean Expression projectCommentedEmailTemplate(); String toDefaultTemplatePath(String templatePath);  }
@Test public void toDefaultTemplatePath() throws Exception { String defaultTemplatePath = mailTemplateConfig.toDefaultTemplatePath("sometemplate.template"); assertThat(defaultTemplatePath, is(equalTo("sometemplate.template.default"))); }