@@ -0,0 +1,976 @@
+package mondocommand.dynamic;%0A%0Aimport static org.junit.Assert.*;%0Aimport mondocommand.CallInfo;%0Aimport mondocommand.MockCommandSender;%0Aimport mondocommand.MondoCommand;%0Aimport mondocommand.MondoFailure;%0A%0Aimport org.bukkit.ChatColor;%0Aimport org.junit.Test;%0A%0Apublic class DynamicSubcommandsTest %7B%0A%0A    @Test%0A    public void testMondoFailureWithDynamicSubcommands() %7B%0A        MondoCommand cmd = new FailingCommand();%0A        MockCommandSender sender = new MockCommandSender();%0A        cmd.onCommand(sender, null, %22test%22, new String%5B%5D %7B %22fail%22 %7D);%0A        assertEquals(1, sender.messages.size());%0A        assertEquals(sender.messages.get(0), ChatColor.RED + %22fail%22);%0A    %7D%0A    %0A    public static class FailingCommand extends MondoCommand %7B%0A        %0A        public FailingCommand() %7B%0A            this.autoRegisterFrom(this);%0A        %7D%0A        %0A        @Sub%0A        public void fail(CallInfo call) throws MondoFailure %7B%0A            throw new MondoFailure(%22fail%22);%0A        %7D%0A    %7D%0A%0A%7D%0A

Write Test to check if Error Messages are propagated properly through MondoFailures on dynamically registered Subcommands