BitIntegrityReportRest extends BaseRest { @Path("/{spaceId}") @HEAD public Response getReportHead(@PathParam("spaceId") String spaceId, @QueryParam("storeID") String storeId) { log.debug("getting report head for {} , {} ", spaceId, storeId); return getReport(spaceId, storeId, true); } @Autowired  BitIntegrityReportRest(JpaBitIntegrityReportRepo repo,
                                  StorageProviderFactory storageProviderFactory); @Path("/{spaceId}") @GET Response getReport(@PathParam("spaceId") String spaceId,
                              @QueryParam("storeID") String storeId); @Path("/{spaceId}") @HEAD Response getReportHead(@PathParam("spaceId") String spaceId,
                                  @QueryParam("storeID") String storeId);  }
@Test public void testGetReportHead() { setupHeader(); setupBitIntegrityReportRepo(); setupStorageProviderFactory(); setupContentProperties(); replayAll(); createRest(); Response response = rest.getReportHead(spaceId, storeId); verifyHeaders(response); assertNull(response.getEntity()); }