    @Test
    public void testList() {

        given()
                .header("Content-Type", "application/json; encoding=utf8; charset=utf8")
//                .body(Entity.json(null))
                .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"));
    }