title: ExceptionMapper and code coverage in Sonar
body: <p>My REST service uses <code>ExceptionMapper</code>s to nicely translate exceptions that occur while processing requests to responses that are sent to the client.</p>
  
  <p>The code generally looks like this:</p>
  
  <pre><code>@Provider
  public class MyExceptionMapper implements ExceptionMapper&lt;MyException&gt; {
      @Override
      public Response toResponse(MyException exception) {
          ...
      }
  }
  </code></pre>
  
  <p>Problem is, Sonar reports all the code in this class as "uncovered" by the code coverage checks, even though the mapper is instantiated during integration tests and these tests show that the class is actually used and the mapper executed.</p>
  
  <p>Is it possible to let Sonar cover this kind of code?</p>