@Test
public void shouldFailToReturnWorkflowsInComponent() throws Exception {

  sinceVersion(Api.Version.V3);
  when(storage.workflows("foo")).thenThrow(new IOException());
  Response<ByteString> response = awaitResponse(
      serviceHelper.request("GET", path("/foo")));
  assertThat(response, hasStatus(withCode(Status.INTERNAL_SERVER_ERROR)));
}