@@ -0,0 +1,1298 @@
+package moulder.moulds;%0A%0Aimport moulder.Moulder;%0Aimport moulder.values.SeqValue;%0Aimport moulder.values.SimpleBox;%0Aimport org.jsoup.Jsoup;%0Aimport org.jsoup.nodes.Document;%0Aimport org.jsoup.nodes.Element;%0Aimport org.jsoup.nodes.Node;%0Aimport org.junit.Test;%0A%0Aimport java.io.StringReader;%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0Aimport static org.custommonkey.xmlunit.XMLAssert.assertXMLEqual;%0A%0Apublic class ForEachTest extends BaseMoulderTest %7B%0A%0A    @Test%0A    public void test() throws Exception %7B%0A        List%3CInteger%3E list = Arrays.asList(4, 2);%0A        final SimpleBox%3CInteger%3E sb = new SimpleBox%3CInteger%3E();%0A        ForEach%3CInteger%3E f = new ForEach%3CInteger%3E(sb, new SeqValue%3CInteger%3E(list), new Moulder() %7B%0A            public List%3CNode%3E process(Element element) %7B%0A                return Arrays.asList(parseNode(%22%3Ca%3Eohai n%22 + sb.get() + %22%3C/a%3E%22));%0A            %7D%0A        %7D);%0A        Document document = Jsoup%0A                .parseBodyFragment(%22%3Ctag%3Etext%3C/tag%3E%22);%0A        Element element = document.getElementsByTag(%22tag%22).first();%0A%0A        List%3CNode%3E processed = f.process(element);%0A%0A        // check for correct repetition of html%0A        assertXMLEqual(new StringReader(%22%3Cbody%3E%22 + %22%3Ca%3Eohai n4%3C/a%3E%3Ca%3Eohai n2%3C/a%3E%22 + %22%3C/body%3E%22), new StringReader(%0A                html(processed)));%0A    %7D%0A%0A%7D%0A

Add test for ForEach moulder