### Question:
LegumeResource { @GET @Fallback(fallbackMethod = "fallback") public List<Legume> list() { final List resultList = manager.createQuery("SELECT l FROM Legume l").getResultList(); return resultList; }  @POST @Transactional Response provision(); @GET @Fallback(fallbackMethod = "fallback") // better use FallbackHandler // @Timeout(500) List<Legume> list(); List<Legume> fallback();  }### Answer:
@Test public void testList() { given() .header("Content-Type", "application/json; encoding=utf8; charset=utf8") .when().post("/legumes") .then() .statusCode(201); given() .when().get("/legumes") .then() .statusCode(200) .body("$.size()", is(2), "name", containsInAnyOrder("Carrot", "Zucchini"), "description", containsInAnyOrder("Root vegetable, usually orange", "Summer squash")); }