static List<String> parseRemote(String[] args) {
        if (args.length < 3) {
            System.err.println("Specifies the <hostname> <portnumber> in 'remote' mode");
            printRemoteHelp();
            System.exit(0);
        }
        String[] params = new String[args.length - 3];
        System.arraycopy(args, 3, params, 0, params.length);
        CommandLine commandLine = parse(REMOTE_OPTIONS, params);
        if (commandLine.hasOption(OPTION_HELP.getOpt())) {
            printRemoteHelp();
            System.exit(0);
        }
        String host = args[1];
        String port = args[2];
        List<String> options = new ArrayList<>();
        options.add(args[0]);
        options.add("-m");
        options.add(host + ":" + port);
        return options;
    }
@Test
    void testParseRemoteWithoutOptions() {
        String[] args = {"remote", "localhost", "8081"};
        List<String> commandOptions = PythonShellParser.parseRemote(args);
        String[] expectedCommandOptions = {"remote", "-m", "localhost:8081"};
        assertThat(commandOptions.toArray()).isEqualTo(expectedCommandOptions);
    }