@@ -0,0 +1,1591 @@
+package picard.pedigree;%0A%0Aimport org.testng.Assert;%0Aimport org.testng.annotations.DataProvider;%0Aimport org.testng.annotations.Test;%0Aimport picard.PicardException;%0A%0Aimport java.util.Arrays;%0A%0Apublic class SexTest %7B%0A    @DataProvider(name = %22testSexDataProviderInt%22)%0A    public Object%5B%5D%5B%5D testSexDataProviderInt() %7B%0A        return new Object%5B%5D%5B%5D%7B%0A                %7BSex.Male, 1%7D,%0A                %7BSex.Female, 2%7D,%0A                %7BSex.Unknown, 0%7D,%0A        %7D;%0A    %7D%0A%0A    @DataProvider(name = %22testSexDataProviderStr%22)%0A    public Object%5B%5D%5B%5D testSexDataProviderStr() %7B%0A        return new Object%5B%5D%5B%5D%7B%0A                %7BSex.Female, %22F%22%7D,%0A                %7BSex.Female, %22f%22%7D,%0A                %7BSex.Female, %22Female%22%7D,%0A                %7BSex.Female, %22female%22%7D,%0A                %7BSex.Male, %22M%22%7D,%0A                %7BSex.Male, %22m%22%7D,%0A                %7BSex.Male, %22Male%22%7D,%0A                %7BSex.Male, %22male%22%7D,%0A                %7BSex.Unknown, %22Unknown%22%7D,%0A                %7BSex.Unknown, %22U%22%7D,%0A                %7BSex.Unknown, %22unknown%22%7D,%0A                %7BSex.Unknown, %22u%22%7D,%0A        %7D;%0A    %7D%0A%0A    /**%0A     * Test Methods within Sex enum%0A     */%0A%0A    @Test(dataProvider = %22testSexDataProviderInt%22)%0A    public void testFromCode(final Sex sex, final int i) %7B%0A        Assert.assertTrue(sex == Sex.fromCode(i));%0A    %7D%0A%0A    @Test(dataProvider = %22testSexDataProviderStr%22)%0A    public void testFromString(final Sex sex, final String s) %7B%0A        Assert.assertTrue(sex == Sex.fromString(s));%0A    %7D%0A%0A    @Test(expectedExceptions = PicardException.class)%0A    public void testFromStringException() %7B%0A        Sex.fromString(%22notASex%22);%0A    %7D%0A%0A%7D%0A

Add testing for methods within sex enum (#1578)