@Test
public void testParse() throws Exception {

    final TextContentParser parser = createTestTextContentParser();
    final TextBlock contents = parser.parse("Hi {{name}}\n\n\tThis is a great test\n\nFrom {{from}}");
    Map<String, Object> model = Maps.newHashMap();
    model.put("name", "Name");
    model.put("from", "From");
    assertCorrectRender(contents, model, "Hi Name\n\n\tThis is a great test\n\nFrom From");
    model.remove("from");
    assertCorrectRender(contents, model, "Hi Name\n\n\tThis is a great test\n\nFrom from");
    model.remove("name");
    assertCorrectRender(contents, model, "Hi name\n\n\tThis is a great test\n\nFrom from");
    model.put("name", "Name");
    model.put("from", "From");
    assertCorrectRender(parser.parse("{{name}}{{from}}"), model, "NameFrom");
}