@Test
public void shouldThrowExceptionWhenStepDoesntExist() throws Exception {

    // given
    final String preparationId = createPreparation("1234", "My preparation");
    applyTransformation(preparationId, "actions/append_upper_case.json");
    applyTransformation(preparationId, "actions/append_lower_case.json");
    // when : delete unknown step
    final Response response = when().delete("/preparations/{id}/actions/{action}", preparationId, "azerty");
    // then
    response.then().statusCode(404).assertThat().body("code", is("TDP_PS_PREPARATION_STEP_DOES_NOT_EXIST"));
}