}
@Bean
@DependsOn("propertyConfigurer")
public ThymeleafTestEngine testEngine() {
ThymeleafTestEngine engine = new ThymeleafTestEngine();
engine.setCacheManager(thymeleafCacheManager());
engine.setTemplateModeHandlers(templateModeHandlers());
engine.setAdditionalDialects(additionalDialects());
Set<ITemplateResolver> templateResolvers = new HashSet<ITemplateResolver>();
templateResolvers.add(servletContextTemplateResolver());
templateResolvers.add(fileTemplateResolver());
engine.setTemplateResolvers(templateResolvers);
engine.setServletContext(servletContext);
engine.setApplicationContext(applicationContext);
return engine;
}