@Test
public void shouldReturnHTTP404WhenNoPreparationUseDataset() throws Exception {

    // given
    final String datasetId = "3214a6748bc4f9674c85";
    final String preparationId = createPreparation("other_dataset", "My preparation");
    applyTransformation(preparationId, "actions/append_upper_case.json");
    repository.get(preparationId, Preparation.class);
    // when
    final Response response = when().head("/preparations/use/dataset/{id}", datasetId);
    // then
    assertThat(response.getStatusCode(), is(404));
}