@Test
public void list() throws Exception {

    // given
    when().get("/preparations").then().statusCode(HttpStatus.OK.value()).body(sameJSONAs("[]"));
    final Preparation preparation1 =
            new Preparation("#18875", "1234", Step.ROOT_STEP.id(), versionService.version().getVersionId());
    preparation1.setCreationDate(0);
    repository.add(preparation1);
    when().get("/preparations").then().statusCode(HttpStatus.OK.value()).body(sameJSONAs("[\"#18875\"]"));
    final Preparation preparation2 =
            new Preparation("#483275", "5678", Step.ROOT_STEP.id(), versionService.version().getVersionId());
    preparation2.setCreationDate(0);
    repository.add(preparation2);
    // when
    final List<String> list = when().get("/preparations").jsonPath().getList("");
    // then
    assertThat(list, hasItems("#18875", "#483275"));
}