@@ -0,0 +1,2436 @@
+package org.monospark.spongematchers.parser.element;%0A%0Aimport static org.hamcrest.CoreMatchers.equalTo;%0Aimport static org.junit.Assert.assertThat;%0A%0Aimport org.junit.Test;%0Aimport org.monospark.spongematchers.parser.SpongeMatcherParseException;%0A%0Apublic class ListElementParserTest %7B%0A%0A    @Test%0A    public void parseElements_ListElementWithSingleElement_ReturnsCorrectStringElement()%0A            throws SpongeMatcherParseException %7B%0A        String input = %22%5B'test'%5D%22;%0A        %0A        StringElement element = StringElementParser.parseStringElement(input);%0A        %0A        ListElement list = (ListElement) element;%0A        assertThat(list.getElements().size(), equalTo(1));%0A        BaseElement%3C?%3E base = (BaseElement%3C?%3E) list.getElements().get(0);%0A        assertThat(base.getString(), equalTo(%22'test'%22));%0A    %7D%0A    %0A    @Test%0A    public void parseElements_ListElement_ReturnsCorrectStringElement()%0A            throws SpongeMatcherParseException %7B%0A        String input = %22%5B'test1','test2','test3'%5D%22;%0A        %0A        StringElement element = StringElementParser.parseStringElement(input);%0A        %0A        ListElement list = (ListElement) element;%0A        assertThat(list.getElements().size(), equalTo(3));%0A        BaseElement%3C?%3E base1 = (BaseElement%3C?%3E) list.getElements().get(0);%0A        assertThat(base1.getString(), equalTo(%22'test1'%22));%0A        BaseElement%3C?%3E base2 = (BaseElement%3C?%3E) list.getElements().get(1);%0A        assertThat(base2.getString(), equalTo(%22'test2'%22));%0A        BaseElement%3C?%3E base3 = (BaseElement%3C?%3E) list.getElements().get(2);%0A        assertThat(base3.getString(), equalTo(%22'test3'%22));%0A    %7D%0A    %0A    @Test%0A    public void parseElements_ListElementWithSpaces_ReturnsCorrectStringElement()%0A            throws SpongeMatcherParseException %7B%0A        String input = %22 %5B 'test1'   , 'test2'   ,  'test3' %5D %22;%0A        %0A        StringElement element = StringElementParser.parseStringElement(input);%0A        %0A        ListElement list = (ListElement) element;%0A        assertThat(list.getElements().size(), equalTo(3));%0A        BaseElement%3C?%3E base1 = (BaseElement%3C?%3E) list.getElements().get(0);%0A        assertThat(base1.getString(), equalTo(%22'test1'%22));%0A        BaseElement%3C?%3E base2 = (BaseElement%3C?%3E) list.getElements().get(1);%0A        assertThat(base2.getString(), equalTo(%22'test2'%22));%0A        BaseElement%3C?%3E base3 = (BaseElement%3C?%3E) list.getElements().get(2);%0A        assertThat(base3.getString(), equalTo(%22'test3'%22));%0A    %7D%0A%7D%0A

Add unit tests for list element parsing