@Test
public void excludedCommands() throws Exception {

    List<Class<? extends Command>> cmds = new ArrayList<>();
    cmds.add(ShellGetCommand.class);
    OptionGroup<ID> options = OptionIntrospector.introspect(CSLTool.class);
    OptionGroup<ID> optionsAdditional = OptionIntrospector.introspect(
            AdditionalShellCommands.class);
    // get number of commands, subtract 1 because there's a HelpCommand
    // and a ShellHelpCommand
    int numCommands = options.getCommands().size() +
            optionsAdditional.getCommands().size() - 1;
    // subtract 1 again because we excluded one command
    --numCommands;
    ArrayList<CharSequence> r = new ArrayList<>();
    complete("", r, cmds);
    assertEquals(numCommands, r.size());
}