@@ -0,0 +1,2038 @@
+package picocli;%0A%0Aimport org.junit.Ignore;%0Aimport org.junit.Test;%0Aimport picocli.CommandLine;%0Aimport picocli.CommandLine.ArgGroup;%0Aimport picocli.CommandLine.Command;%0Aimport picocli.CommandLine.Mixin;%0Aimport picocli.CommandLine.Option;%0A%0Aimport static org.junit.Assert.*;%0A%0A%0Apublic class Issue776OptionHeadingIgnoredInMixinTest %7B%0A%0A    @Command(name = %22test%22,%0A            description = %22Picocli test.%22,%0A            abbreviateSynopsis = true,%0A            sortOptions = false,%0A            usageHelpAutoWidth = true)%0A    static class TestCommand %7B%0A%0A        @Mixin%0A        TestConfig testConfig = new TestConfig();%0A%0A        private static class TestConfig %7B%0A            @ArgGroup(validate = false, heading = %22A1%25n%22)%0A            private final A1 a1 = new A1();%0A%0A            private static class A1 %7B%0A                @Option(names = %7B%22-ta1%22, %22--test-a1%22%7D)%0A                private String testA1;%0A                @Option(names = %7B%22-ta2%22, %22--test-a2%22%7D)%0A                private String testA2;%0A            %7D%0A%0A            @ArgGroup(validate = false, heading = %22A2%25n%22)%0A            private final A2 a2 = new A2();%0A%0A            private static class A2 %7B%0A                @Option(names = %7B%22-tb1%22, %22--test-b1%22%7D)%0A                private String testB1;%0A                @Option(names = %7B%22-tb2%22, %22--test-b2%22%7D)%0A                private String testB2;%0A            %7D%0A        %7D%0A    %7D%0A%0A    @Ignore%0A    @Test%0A    public void testUsage() %7B%0A        String expected = String.format(%22%22 +%0A                %22Usage: test %5BOPTIONS%5D%25n%22 +%0A                %22Picocli test.%25n%22 +%0A                %22A1%25n%22 +%0A                %22      -ta1, --test-a1=%3CtestA1%3E%25n%22 +%0A                %22%25n%22 +%0A                %22      -ta2, --test-a2=%3CtestA2%3E%25n%22 +%0A                %22%25n%22 +%0A                %22A2%25n%22 +%0A                %22      -tb1, --test-b1=%3CtestB1%3E%25n%22 +%0A                %22%25n%22 +%0A                %22      -tb2, --test-b2=%3CtestB2%3E%25n%22 +%0A                %22%25n%22);%0A        String actual = new CommandLine(new TestCommand()).getUsageMessage(CommandLine.Help.Ansi.OFF);%0A%0A        assertEquals(expected, actual);%0A    %7D%0A%7D%0A

Add failing test.