### Question:
CardRestApi { @PUT @ApiOperation(value = "Update a new Card", notes = "Update a card using json") public Response updateCard(Card card){ if(card.getId()==null)return createCard(card); card = cardService.updateCard(card); return Response.ok(card).build(); }  @POST @ApiOperation(value = "Create a new Card", notes = "Create a card using json") Response createCard(Card card); @PUT @ApiOperation(value = "Update a new Card", notes = "Update a card using json") Response updateCard(Card card); @GET @Path("/{id}") @ApiOperation(value = "Get a Card", notes = "Get a card using an Id", response = Card.class) Response getCard(@PathParam("id") Long id); @DELETE @Path("/{id}") @ApiOperation(value = "Delete a Card", notes = "Delete a card with an Id") Response removeCard(@PathParam("id") Long id); @GET @ApiOperation(value = "Get all cards", notes = "Get all cards in json") Response getCards();  }### Answer:
@Test(priority = 2) @RunAsClient public void testUpdateCard() throws Exception { testCard.setTitle("This is an updated title"); Response response = client.target(this.uri).path(PATH) .request(MediaType.APPLICATION_JSON_TYPE) .put(Entity.entity(testCard, MediaType.APPLICATION_JSON_TYPE), Response.class); Assert.assertEquals(response.getStatus(), 200); Card updatedCard = response.readEntity(Card.class); Assert.assertEquals(updatedCard.getId(),testCard.getId()); Assert.assertEquals(updatedCard.getTitle(), testCard.getTitle()); this.testCard = updatedCard; }