### Question:
ThymeleafSvgConfig implements ApplicationContextAware { @Bean public ITemplateResolver svgTemplateResolver() { final SpringResourceTemplateResolver svgTemplateResolver = new SpringResourceTemplateResolver(); svgTemplateResolver.setApplicationContext(applicationContext); svgTemplateResolver.setPrefix("classpath:/templates/svg/"); svgTemplateResolver.setTemplateMode(TemplateMode.XML); svgTemplateResolver.setCharacterEncoding("UTF-8"); svgTemplateResolver.setOrder(0); svgTemplateResolver.setCheckExistence(true); return svgTemplateResolver; }  @Bean ITemplateResolver svgTemplateResolver(); @Bean ThymeleafViewResolver svgViewResolver(final SpringTemplateEngine templateEngine); @Override void setApplicationContext(final ApplicationContext applicationContext);  }### Answer:
@Test public void svgTemplateResolver() { final ApplicationContext applicationContext = mock(ApplicationContext.class); config.setApplicationContext(applicationContext); final SpringResourceTemplateResolver templateResolver = (SpringResourceTemplateResolver) config.svgTemplateResolver(); assertThat(templateResolver).hasFieldOrPropertyWithValue("applicationContext", applicationContext); assertThat(templateResolver.getPrefix()).isEqualTo("classpath:/templates/svg/"); assertThat(templateResolver.getTemplateMode()).isEqualTo(TemplateMode.XML); assertThat(templateResolver.getCharacterEncoding()).isEqualTo("UTF-8"); }