@Test
public void shouldReturnErrorWhenFailedToGetWorkflow() throws Exception {

  sinceVersion(Api.Version.V3);
  doThrow(new IOException()).when(storage).workflow(WORKFLOW.id());
  var response = awaitResponse(serviceHelper.request("GET", path("/foo/bar")));
  assertThat(response, hasStatus(withCode(Status.INTERNAL_SERVER_ERROR)));
  verify(storage, never()).delete(WORKFLOW.id());
}