### Question:
ArticleResource { @GET @Path("/{id}") public Response getOne(@PathParam("id") Long id) { Article entity = Article.findById(id); if (entity == null) { return Response .status(Response.Status.NOT_FOUND) .build(); } return Response .status(Response.Status.OK) .entity(entity) .build(); }  @OPTIONS Response opt(); @GET List<Article> getAll(@QueryParam("page") Integer page); @GET @Path("/{id}") Response getOne(@PathParam("id") Long id); @POST @Transactional Response create(Article article); @PUT @Path("/{id}") @Transactional Response update(Article article, @PathParam("id") Long id); @DELETE @Transactional @Path("/{id}") Response deleteOne(@PathParam("id") Long id);  }### Answer:
@Test @Order(1) void testGetOne() { given() .pathParam("id", "1") .when() .get("/article/{id}") .then() .header(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON) .statusCode(HttpStatus.SC_OK) .body("title", equalTo("Test Article")); }