@Test(expected = TemplateException.class)
public void testRepeatNotMapWhenMapRequired() throws Exception {

    final TemplateParser parser = createTestParser(SystemInfo.STAGE_TESTING);
    final URL url = TemplateParserTest.class.getResource("repeat-template.html");
    final TNode parseTree = parser.parse(IO.toPath(url.toURI()));
    Map<String, Object> model = Maps.newHashMap();
    model.put("maps", Lists.newArrayList(Lists.newArrayList("elem1")));
    model.put("type", "x");
    String expected = "This doesn't matter because the render should fail";
    assertCorrectRender(parseTree, model, expected);
}