@@ -0,0 +1,963 @@
+package org.intermine.webservice.server.core;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0Aimport org.intermine.api.results.ResultElement;%0Aimport org.intermine.webservice.server.output.MemoryOutput;%0Aimport org.junit.Test;%0A%0Apublic class ResultProcessorTest %7B%0A%0A    @Test%0A    public void nullElements() %7B%0A        List%3CResultElement%3E row = new ArrayList%3CResultElement%3E();%0A        row.add(null);%0A        row.add(null);%0A        row.add(null);%0A        row.add(null);%0A        @SuppressWarnings(%22unchecked%22)%0A        List%3CList%3CResultElement%3E%3E table = Arrays.asList(row);%0A        MemoryOutput output = new MemoryOutput();%0A        ResultProcessor processor = new ResultProcessor();%0A        processor.write(table.iterator(), output);%0A        assertEquals(%22Every null element should now be an empty string%22,%0A                Arrays.asList(%22%22, %22%22, %22%22, %22%22),%0A                output.getResults().get(0));%0A    %7D%0A%0A%7D%0A

Test for issue raised in #2070