@@ -0,0 +1,2298 @@
+package owltools2;%0A%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0Aimport org.apache.commons.cli.Options;%0Aimport org.semanticweb.owlapi.model.OWLOntology;%0A%0A/**%0A * Simple mock command for testing.%0A *%0A * @author %3Ca href=%22mailto:james@overton.ca%22%3EJames A. Overton%3C/a%3E%0A */%0Apublic class MockCommand implements Command %7B%0A    /**%0A     * Logger.%0A     */%0A    private static final Logger logger =%0A        LoggerFactory.getLogger(CatalogXmlIRIMapper.class);%0A%0A    /**%0A     * Store options.%0A     */%0A    private Options options;%0A%0A    /**%0A     * Store the arguments from the last execution.%0A     */%0A    private String%5B%5D lastArgs = null;%0A%0A    /**%0A     * Construct mock command with common options.%0A     */%0A    public MockCommand() %7B%0A        options = CommandLineHelper.getCommonOptions();%0A    %7D%0A%0A    /**%0A     * Name of the command.%0A     *%0A     * @return name%0A     */%0A    public String getName() %7B%0A        return %22mock%22;%0A    %7D%0A%0A    /**%0A     * Brief description of the command.%0A     *%0A     * @return description%0A     */%0A    public String getDescription() %7B%0A        return %22a mock command, for testing only%22;%0A    %7D%0A%0A    /**%0A     * Command-line usage for the command.%0A     *%0A     * @return usage%0A     */%0A    public String getUsage() %7B%0A        return %22mock%22;%0A    %7D%0A%0A    /**%0A     * Command-line options for the command.%0A     *%0A     * @return options%0A     */%0A    public Options getOptions() %7B%0A        return options;%0A    %7D%0A%0A    /**%0A     * Run mock command.%0A     *%0A     * @param args strings to use as arguments%0A     */%0A    public void main(String%5B%5D args) %7B%0A        try %7B%0A            execute(null, args);%0A        %7D catch (Exception e) %7B%0A            return;%0A        %7D%0A    %7D%0A%0A    /**%0A     * Execute mock command, storing the arguments.%0A     *%0A     * @param inputOntology the ontology from the previous command, or null%0A     * @param args the command-line arguments%0A     * @return the input ontology%0A     * @throws Exception on any problem%0A     */%0A    public OWLOntology execute(OWLOntology inputOntology, String%5B%5D args)%0A            throws Exception %7B%0A        lastArgs = args;%0A%0A        return inputOntology;%0A    %7D%0A%0A    /**%0A     * Return the args from the last execution.%0A     *%0A     * @return the args from the last execution, or null;%0A     */%0A    public String%5B%5D getLastArgs() %7B%0A        return lastArgs;%0A    %7D%0A%7D%0A%0A

Add MockCommand class for testing