@@ -0,0 +1,1452 @@
+package com.webcohesion.ofx4j.domain.data.tax1099;%0A%0Aimport com.webcohesion.ofx4j.io.AggregateMarshaller;%0Aimport com.webcohesion.ofx4j.io.v2.OFXV2Writer;%0A%0Aimport junit.framework.TestCase;%0A%0Aimport java.io.IOException;%0Aimport java.io.StringWriter;%0Aimport java.util.Arrays;%0A%0Apublic class TestTax1099R extends TestCase %7B%0A%0A    public void testMarshallMultipleDistributionCodes() throws IOException %7B%0A        Tax1099R tax1099R = new Tax1099R();%0A%0A        //Required%0A        tax1099R.setSrvrtId(%22test%22);%0A        tax1099R.setTaxYear(%222020%22);%0A        tax1099R.setGrossDist(%2210%22);%0A        tax1099R.setIraSepSimp(%22N%22);%0A        tax1099R.setPayerId(%22testing%22);%0A%0A        PayerAddress payerAddress = new PayerAddress();%0A        payerAddress.setAddress1(%22testing%22);%0A        payerAddress.setPayerName1(%22testing%22);%0A        payerAddress.setCity(%22testing%22);%0A        payerAddress.setState(%22TEST%22);%0A        payerAddress.setPostalCode(%2212341%22);%0A        tax1099R.setPayerAddress(payerAddress);%0A        tax1099R.setRecId(%221234567%22);%0A        tax1099R.setRecAcct(%221234567%22);%0A%0A        tax1099R.setDistCodes(Arrays.asList(%22A%22, %22G%22));%0A%0A        StringWriter sw = new StringWriter();%0A        AggregateMarshaller marshaller = new AggregateMarshaller();%0A%0A        marshaller.marshal(tax1099R, new OFXV2Writer(sw));%0A%0A        String output = sw.toString();%0A        assertTrue(output.contains(%22%3CDISTCODE%3EA%3C/DISTCODE%3E%22));%0A        assertTrue(output.contains(%22%3CDISTCODE%3EG%3C/DISTCODE%3E%22));%0A    %7D%0A%7D%0A

Add test for correctly unmarshalling multiple distribution codes