/* without the final access to field it does not work,
field access in if-conditins does not count for loops*/
StringReader reader = new StringReader("${ns:rdfs=http://www.w3.org/2000/01/rdf-schema#}${loop}${if rdfs:comment}${rdfs:comment}${/if} and ${if rdfs:label}yes${else}no${/if}${rdfs:comment}${/loop}");
StringWriter writer = new StringWriter();
new DefaultParser(reader, writer).perform(dataFieldResolver);
Assert.assertEquals("\"a resource\" and no\"a resource\"", writer.toString());
}