@Test
public void shouldGetPreparation() throws Exception {

    // given
    final Folder fromFolder = folderRepository.addFolder(home.getId(), "from");
    final String preparationId =
            clientTest.createPreparation(createTestPreparation("yap", "7535"), fromFolder.getId()).getId();
    final Preparation preparation = repository.get(preparationId, Preparation.class);
    final String expected = "{" + "\"id\":\"" + preparation.getId() + "\"," + "\"dataSetId\":\"7535\","
            + "\"author\":\"" + preparation.getAuthor() + "\"," + "\"name\":\"yap\"," + "\"creationDate\":"
            + preparation.getCreationDate() + "," + "\"lastModificationDate\":" + preparation.getCreationDate()
            + "," + "\"headId\":\"f6e172c33bdacbc69bca9d32b2bd78174712a171\"" + "}";
    // when
    final Response response = given() //
            .queryParam("id", preparationId) //
            .when() //
            .expect()
            .statusCode(200)
            .log()
            .ifError() //
            .get("/preparations/{id}", preparationId);
    // then
    assertThat(response.asString(), sameJSONAs(expected).allowingExtraUnexpectedFields());
}