### Question:
BidRestService { @DELETE @Path("{id}") public void deleteBid(@PathParam("id") Long id) { Bid bid = bidService.getBid(id); bidService.deleteBid(bid); }  @POST @Consumes("application/json") @Produces("application/json") Bid addBid(Bid bid); @GET @Path("{id}") @Produces("application/json") Bid getBid(@PathParam("id") Long id); @PUT @Path("{id}") @Consumes("application/json") void updateBid(@PathParam("id") Long id, Bid bid); @DELETE @Path("{id}") void deleteBid(@PathParam("id") Long id);  }### Answer:
@Test @InSequence(3) public void testDeleteBid() { WebTarget target = ClientBuilder.newClient() .target("http: .resolveTemplate("id", bidId); target.request().delete(); assertNull(target.request("application/json").get(Bid.class)); }