@Test
public void shouldFailToDeleteResource() throws Exception {

  sinceVersion(Api.Version.V3);
  doThrow(new IOException()).when(storage).deleteResource(anyString());
  Response<ByteString> response =
      awaitResponse(serviceHelper.request("DELETE", path("/resource1")));
  assertThat(response, hasStatus(belongsToFamily(StatusType.Family.SERVER_ERROR)));
}