@Test
public void compiledForeachSample() throws Exception {
String input = "${ foreach list item \n}${item.property1}${end}";
String interpretedOutput = newEngine().transform(input, DEFAULT_MODEL);
String compiledOutput = new SampleNewlineForeachSeparatorCompiledTemplate(
newEngine()).transform(DEFAULT_MODEL, DEFAULT_LOCALE,
MODEL_ADAPTOR, null);
assertEquals(interpretedOutput, compiledOutput);
}