title: Test integration for cache REST API
body: <p>I have implemented a <strong>REST service</strong> with <strong>cache mechanism</strong> where the <strong>cache</strong> is <strong>valid</strong> for 5 minutes as follows: </p>
  
  <pre><code>public Response findNberofPointsByUserIdCache(Long userId, Long exerciseId) {
      Integer nberPoints=exerciseDao.calculateNberOfPoints(userId,exerciseId);
      CacheControl cc = new CacheControl();
      cc.setMaxAge(300);// for 5 minutes
      cc.setPrivate(true);
  
      ResponseBuilder builder = Response.ok(nberPoints);
      builder.cacheControl(cc);
      return builder.build();
  
  }
  </code></pre>
  
  <p>I would like to test it with <code>@Test</code> Junit. How can I do it?</p>