@Test
public void getDetails() throws Exception {

    // given
    final Preparation preparation = new Preparation("8b6281c5e99c41313a83777c3ab43b06adda9e5c", "1234",
            Step.ROOT_STEP.id(), versionService.version().getVersionId());
    preparation.setCreationDate(0);
    preparation.setLastModificationDate(12345);
    repository.add(preparation);
    // when
    final String preparationDetails = when().get("/preparations/{id}/details", preparation.id()).asString();
    // then
    final InputStream expected = PreparationControllerTest.class.getResourceAsStream("preparation_1234.json");
    assertThat(preparationDetails, sameJSONAsFile(expected));
}