@@ -0,0 +1,2908 @@
+/*%0A * ******************************************************************************%0A *   Copyright 2014-2015 Spectra Logic Corporation. All Rights Reserved.%0A *   Licensed under the Apache License, Version 2.0 (the %22License%22). You may not use%0A *   this file except in compliance with the License. A copy of the License is located at%0A *%0A *   http://www.apache.org/licenses/LICENSE-2.0%0A *%0A *   or in the %22license%22 file accompanying this file.%0A *   This file is distributed on an %22AS IS%22 BASIS, WITHOUT WARRANTIES OR%0A *   CONDITIONS OF ANY KIND, either express or implied. See the License for the%0A *   specific language governing permissions and limitations under the License.%0A * ****************************************************************************%0A */%0A%0Apackage com.spectralogic.ds3autogen.c;%0A%0Aimport com.google.common.collect.ImmutableList;%0Aimport com.spectralogic.ds3autogen.c.converters.HeaderConverter;%0Aimport com.spectralogic.ds3autogen.c.converters.RequestConverter;%0Aimport com.spectralogic.ds3autogen.c.models.Enum;%0Aimport com.spectralogic.ds3autogen.c.models.*;%0Aimport com.spectralogic.ds3autogen.testutil.Ds3ModelFixtures;%0Aimport org.junit.Test;%0A%0Aimport java.text.ParseException;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class HeaderConverter_Test %7B%0A    @Test%0A    public void testToHeader() throws ParseException %7B%0A        final ImmutableList%3CRequest%3E allRequests = ImmutableList.of(%0A                RequestConverter.toRequest(Ds3ModelFixtures.createBucketRequest()),%0A                RequestConverter.toRequest(Ds3ModelFixtures.deleteBucketRequest()),%0A                RequestConverter.toRequest(Ds3ModelFixtures.getBucketsRequest()));%0A%0A        final ImmutableList%3CEnum%3E allEnums = ImmutableList.of(%0A                new Enum(%22TestEnum%22, ImmutableList.of(%0A                        %22TestEnumValue1%22,%0A                        %22TestEnumValue2%22)),%0A                new Enum(%22TestEnum2%22, ImmutableList.of(%0A                        %22TestEnumValue3%22,%0A                        %22TestEnumValue4%22)));%0A%0A        final ImmutableList%3CStruct%3E allStructs = ImmutableList.of(%0A                new Struct(%22testStruct1%22, null, ImmutableList.of(%0A                        new StructMember(new PrimitiveType(%22int%22, false), %22structMember1%22),%0A                        new StructMember(new PrimitiveType(%22ds3_str%22, true), %22structMember2%22)),%0A                        true,%0A                        false),%0A                new Struct(%22testStruct2%22, %22marshallStruct2%22, ImmutableList.of(%0A                        new StructMember(new PrimitiveType(%22int%22, false), %22structMember3%22)),%0A                        false,%0A                        true));%0A%0A        final Header testHeader = HeaderConverter.toHeader(allEnums, allStructs, allRequests);%0A        assertEquals(testHeader.getEnums(), allEnums);%0A        assertEquals(testHeader.getRequests(), allRequests);%0A        assertEquals(testHeader.getStructs(), allStructs);%0A    %7D%0A%7D%0A

Add unit test coverage for the HeaderConverter