void () { assertNull(ProcessListUtil.parseMacOutput( """ PID STAT USER COMM 1 S user /dir/file """, "" )); assertNull(ProcessListUtil.parseMacOutput( "", """ PID STAT USER COMMAND 1 S user /dir/file """ )); assertNull(ProcessListUtil.parseMacOutput( """ PID STAT USER COMM 1 S user /dir/file """, "wrong format" )); assertNull(ProcessListUtil.parseMacOutput( "wrong format", """ PID STAT USER COMMAND 1 S user /dir/file """ )); assertEmpty(ProcessListUtil.parseMacOutput( """ PID PPID STAT USER COMM 1 0 S user /dir/file """, """ PID PPID S USER COMMAND \s """ )); assertEmpty(ProcessListUtil.parseMacOutput( """ PID PPID S USER COMMAND \s """, """ PID PPID STAT USER COMMAND 1 0 S user /dir/file """ )); }