I am almost certain this is impossible, but it\'s worth a try.
I am writing a command line interface for a certain tool. I am talking about a Java application that i
Regarding to this (@Vonc answer) you should use Security Manager:
Try modifying the TestCase to run with a security manager that prevents calling System.exit, then catch the SecurityException.