@Test
public void testSpacing() throws Exception {

    final TemplateParser parser = createTestParser(SystemInfo.STAGE_PRODUCTION);
    final URL url = AbstractTemplateParserTest.class.getResource("template-spacing.html");
    final Path path = IO.toPath(url.toURI());
    final TNode parseTree = parser.parse(path);
    Map<String, Object> model = Maps.newHashMap();
    model.put("title", "Title");
    String expected = "<html>\n"
        + "<head>\n"
        + "  <title>Title</title>\n"
        + "</head>\n"
        + "</html>";
    final ByteArrayOutputStream result = new ByteArrayOutputStream();
    TRenderContext context = new TRenderContext(result, model);
    parseTree.render(context);
    assertEquals(expected + "\n" + result, expected, result.toString());
}