### Question:
JadeViewRenderer implements ViewRenderer, ApplicationContextAware { @Override public String render(String viewFileName) throws IOException { return render(null, viewFileName, defaultMap); } @Autowired  JadeViewRenderer(@Value("${jade.layouts.path}") String layoutsPath,
                            @Value("${jade.views.path}") String viewsPath,
                            @Value("${jade.errors.path}") String errorsPath,
                            ViewHelper viewHelper); @Override String render(String viewFileName); @Override String render(String viewFileName, Map<String, Object> attrs); @Override String renderWithDefaultLayout(String viewFileName); @Override String renderWithDefaultLayout(Class<T> source); @Override String renderWithDefaultLayout(String viewFileName, Map<String, Object> attrs); @Override String renderWithDefaultLayout(Class source, Map<String, Object> attrs); @Override String render(String layoutFileName, InputStream layout, String viewFileName, InputStream template); @Override String render(final String layoutName, final String viewFileName); @Override String render(String layoutName, String viewName, Map<String, Object> attrs); @Override String render(final String layoutFileName, final InputStream layout, final String viewFileName,
                         final InputStream view, Map<String, Object> attrs); String renderError(String viewPath, Exception e); void setServletContext(ServletContext servletContext); @Override void setApplicationContext(ApplicationContext applicationContext); static final String ERR_500_TPL; static final String ERR_400_TPL; final String layoutsPath; final String viewsPath; final String errorsPath; }### Answer:
@Test public void testRender() throws IOException { String testView = renderer.renderWithDefaultLayout("test-view.jade", map("body", (Object) "testValue")); assertThat(testView, containsString("Body:view testValue")); assertThat(testView, containsString("subsubsub")); String apiResource = renderer.renderWithDefaultLayout(ApiResource.class); assertThat(apiResource, containsString("API")); String errorView = renderer.renderWithDefaultLayout("error.jade", new HashMap<String, Object>()); assertThat(errorView, containsString("Server error")); }