title: Do not display stacktrace of thrown exception messages in JUnit test
body: <p>While testing for message value of thrown exception messages like this:</p>
  
  <pre><code>public void mustFailIfTheActionDoesNotExist() {
          try {
              getAction(UUID.randomUUID().toString());
  
              fail("Must fail if the action does not exists");
          } catch (MyException ex) {
              Assert.assertEquals("Exception generated on action", ex.getMessage());
          }
  </code></pre>
  
  <p>the exception and their stacktrace are visible on the terminal. As I have hundreds of classes in my project, the terminal just becomes a long list of stacktraces of exception messages.</p>
  
  <p>Is there a way to suppress the stack-trace of exception output to screen/terminal when Junit tests are run?</p>
  
  <p>PS: I don't want to suppress logging for all unit tests, just in specific cases.</p>