void () { List<ProcessInfo> infos = ProcessListUtil.parseMacOutput( """ PID PPID STAT USER COMM 1 0 S user /dir/file 2 1 S user /dir/file 3 2 S user /dir/file 4 3 S user /dir/file """, """ PID PPID STAT USER COMMAND 1 0 S user /dir/file param 2 1 S user /dir/ffff 3 2 S user /dir/file1 4 3 S user /dir/file/1 """ ); assertOrderedEquals(infos, new ProcessInfo(1, "/dir/file param", "file", "param", "/dir/file", 0, "user", ThreeState.UNSURE)); }