title: How to verify if an exception is caught
body: <p>How to test if an exception is caught with Mockito?</p>
  
  <p>Example: </p>
  
  <pre><code>try{
       int a = 8/0;
  catch(ArithmeticException e){
      Logger.error(e.getMessage());
  }
  </code></pre>