title: Mockito mocking a Response class
body: <p>When I try to mock a javax.ws.rs.core <code>Response</code> I get a error message:</p>
  
  <blockquote>
    <p>Unable to create a JAX-RS runtime Delegate</p>
  </blockquote>
  
  <p>Why does this happen?</p>
  
  <pre><code> Response response = Mockito.mock(Response.class);
  </code></pre>
  
  <p>But when I try to mock a HttpServletResponse there is no issue with that!</p>
  
  <pre><code> HttpServletResponse response1 = Mockito.mock(HttpServletResponse.class);
  </code></pre>