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