@@ -0,0 +1,1312 @@
+package com.github.rholder.esthree.cli;%0A%0Aimport com.github.rholder.esthree.Main;%0Aimport io.airlift.command.ParseArgumentsUnexpectedException;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Apublic class HelpCommandTest extends HelpCommand %7B%0A%0A    @Test%0A    public void helpNone() %7B%0A        Main main = new Main();%0A        main.parseGlobalCli();%0A        main.command.parse();%0A        main.command.run();%0A    %7D%0A%0A    @Test%0A    public void help() %7B%0A        Main main = new Main();%0A        main.parseGlobalCli(%22help%22);%0A        main.command.parse();%0A        main.command.run();%0A    %7D%0A%0A    @Test%0A    public void helpGet() %7B%0A        Main main = new Main();%0A        main.parseGlobalCli(%22help%22, %22get%22);%0A        main.command.parse();%0A        main.command.run();%0A    %7D%0A%0A    @Test%0A    public void helpSelf() %7B%0A        Main main = new Main();%0A        main.parseGlobalCli(%22help%22, %22esthree%22);%0A        main.command.parse();%0A        main.command.run();%0A    %7D%0A%0A    @Test%0A    public void helpUnexpected() %7B%0A        try %7B%0A            Main main = new Main();%0A            main.parseGlobalCli(%22potato%22);%0A            Assert.fail(%22Expected ParseArgumentsUnexpectedException%22);%0A        %7D catch (ParseArgumentsUnexpectedException e) %7B%0A            Assert.assertTrue(e.getMessage().contains(%22Found unexpected parameters%22));%0A        %7D%0A    %7D%0A%7D%0A

add help cli test