In a class that I need to do unit test on, there is a part that use System.err.print. How can we throw exception or pass any @rule in order to pass the test when it goes to that line? to code was:
if (a == null) {
            System.err.println("Error: empty file");
            System.exit(1);
        } 
Thanks
 
     
     
     
     
    