FreemarkerRenderer implements Renderer { public boolean isRenderable(String path, Request request) { return path != null && path.startsWith("/") && path.endsWith(".ftl"); } FreemarkerRenderer(AttributeValueFreemarkerServlet servlet); @Override void render(String path, Request request); boolean isRenderable(String path, Request request);  }
@Test public void testIsRenderable() { assertTrue(renderer.isRenderable("/my/template.ftl", null)); assertFalse(renderer.isRenderable("my/template.ftl", null)); assertFalse(renderer.isRenderable("/my/template.jsp", null)); verify(applicationContext, servletContext); }