### Question:
FruitResource { @GET public Set<Fruit> list() { return fruits; } FruitResource(); @GET Set<Fruit> list(); @POST Set<Fruit> add(Fruit fruit); @DELETE Set<Fruit> delete(Fruit fruit);  }### Answer:
@Test public void testList() { given() .when().get("/fruits") .then() .statusCode(200) .body("$.size()", is(2), "name", containsInAnyOrder("Apple", "Pineapple"), "description", containsInAnyOrder("Winter fruit", "Tropical fruit")); }