### Question:
RoomResource { @DELETE @Path("{roomId}") public Response delete(@PathParam("roomId") Long roomId) { Room room = Room.findById(roomId); if (room == null) { return Response.status(Response.Status.NOT_FOUND).build(); } room.delete(); return Response.status(Response.Status.OK).build(); }  @GET List<Room> getAllRooms(); @POST Response add(Room room); @DELETE @Path("{roomId}") Response delete(@PathParam("roomId") Long roomId);  }### Answer:
@Test void addAndRemove() { Room room = given() .when() .contentType(ContentType.JSON) .body(new Room("Test room")) .post("/rooms") .then() .statusCode(202) .extract().as(Room.class); given() .when() .delete("/rooms/{id}", room.getId()) .then() .statusCode(200); }