title: Write JUnit test for local @ExceptionHandler
body: <p>I have the following controller:</p>
  
  <pre><code>class Controller {
  
      @ResponseStatus(HttpStatus.OK)
      @RequestMapping(value = "/verifyCert", method = RequestMethod.GET)
      public void verifyCertificate() throws CertificateExpiredException, CertificateNotYetValidException {
          certificate.checkValidity();
      }
  
      @ResponseStatus(HttpStatus.FORBIDDEN)
      @ExceptionHandler({CertificateExpiredException.class, CertificateNotYetValidException.class})
      public void handleCertificateValidityException(Exception e) {}
  }
  </code></pre>
  
  <p>My goal is to that controller redirects to exception handler if certificate is not valid.</p>