### Question:
LegumeResource { @GET public Response list() { return Response.ok(legumes).build(); } LegumeResource(); @GET Response list();  }### Answer:
@Test public void testList() { given() .when().get("/legumes") .then() .statusCode(200) .body("$.size()", is(2), "name", containsInAnyOrder("Carrot", "Zucchini"), "description", containsInAnyOrder("Root vegetable, usually orange", "Summer squash")); }