@Test
public void testIsRenderable() {

    MustacheRenderer renderer = new MustacheRenderer();
    final Pattern pattern = Pattern.compile("/.*");
    renderer.setAcceptPattern(pattern);
    assertTrue(renderer.isRenderable("/my/template.html", null));
    assertTrue(renderer.isRenderable("/my/template.any", null));
    assertFalse(renderer.isRenderable("my/template.html", null));
    assertFalse(renderer.isRenderable(null, null));
}