title: Handle Exception with Mockito
body: <p>I'm using <code>Mockito</code> in my unit testing. I have a method</p>
  
  <pre><code>public Status getResponse(Request requset) throws DataException{
  }
  </code></pre>
  
  <p><code>DataException</code> is my own defined one which inherited from Exception class.</p>
  
  <p>In my test case</p>
  
  <pre><code>static{
  when(process.getResponse(any(Request.class))).
                  thenReturn(new Status("Success"));
  }
  </code></pre>
  
  <p>It gives an error, <code>Unhandled Exception:DataException</code></p>
  
  <p>Is there any way in <code>Mockito</code> to handle this issue without adding try/catch ?</p>