@Test
public void locateUnknownPreparationShouldSend404() throws Exception {

    // when
    final Response response = given() //
            .when() //
            .expect()
            .statusCode(404)
            .log()
            .ifError() //
            .get("/preparations/{id}/folder", "unknown preparation");
    // then
    assertThat(response.getStatusCode(), is(404));
}