@Test
public void testIsRenderable() {

    VelocityView view = createMock(VelocityView.class);
    replay(view);
    Renderer renderer = new VelocityRenderer(view);
    assertTrue(renderer.isRenderable("/my/template.vm", null));
    assertFalse(renderer.isRenderable("my/template.vm", null));
    assertFalse(renderer.isRenderable("/my/template.jsp", null));
    verify(view);
}