@@ -0,0 +1,1772 @@
+package de.jeha.s3srv.api;%0A%0Aimport de.jeha.s3srv.jaxb.JaxbMarshaller;%0Aimport org.junit.Test;%0A%0Aimport javax.xml.bind.JAXBException;%0Aimport java.io.IOException;%0Aimport java.time.Instant;%0Aimport java.util.Collections;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0A/**%0A * @author jenshadlich@googlemail.com%0A */%0Apublic class ListBucketResultSerializationTest %7B%0A%0A    @Test%0A    public void test() throws JAXBException, IOException %7B%0A        ListBucketResult response = new ListBucketResult(%0A                %22test-bucket%22,%0A                1,%0A                1000,%0A                Collections.singletonList(new ListBucketResult.ContentsEntry(%0A                        %22test-object%22,%0A                        Instant.parse(%222009-10-12T17:50:30.001Z%22),%0A                        %22%5C%22fba9dede5f27731c9771645a39863328%5C%22%22,%0A                        434234)));%0A%0A        final String responseXml = JaxbMarshaller.marshall(response);%0A%0A        System.out.println(responseXml);%0A%0A        String expected = %22%3C?xml version=%5C%221.0%5C%22 encoding=%5C%22UTF-8%5C%22?%3E%5Cn%22 +%0A                %22%3CListBucketResult xmlns=%5C%22http://s3.amazonaws.com/doc/2006-03-01%5C%22%3E%5Cn%22 +%0A                %22    %3CName%3Etest-bucket%3C/Name%3E%5Cn%22 +%0A                %22    %3CKeyCount%3E1%3C/KeyCount%3E%5Cn%22 +%0A                %22    %3CMaxKeys%3E1000%3C/MaxKeys%3E%5Cn%22 +%0A                %22    %3CContents%3E%5Cn%22 +%0A                %22        %3CKey%3Etest-object%3C/Key%3E%5Cn%22 +%0A                %22        %3CLastModified%3E2009-10-12T17:50:30.001Z%3C/LastModified%3E%5Cn%22 +%0A                %22        %3CETag%3E%5C%22fba9dede5f27731c9771645a39863328%5C%22%3C/ETag%3E%5Cn%22 +%0A                %22        %3CSize%3E434234%3C/Size%3E%5Cn%22 +%0A                %22        %3CStorageClass%3ESTANDARD%3C/StorageClass%3E%5Cn%22 +%0A                %22    %3C/Contents%3E%5Cn%22 +%0A                %22%3C/ListBucketResult%3E%22;%0A%0A        assertEquals(expected, responseXml);%0A    %7D%0A%7D%0A

add test