binding.put("first", "Tom");
binding.put("last", "Adams");
Template template = new SimpleTemplateEngine().createTemplate("<%= first %>\n<% println last %>");
StringWriter stringWriter = new StringWriter();
Writer platformWriter = new PlatformLineWriter(stringWriter);
template.make(binding).writeTo(platformWriter);
assertEquals("Tom" + LS + "Adams" + LS, stringWriter.toString());
}
}