public async Task ExceptionThrownWhenUpdatingAStorageObjectWithInternalServerError() { var containerName = "TestContainer"; var objectName = "TestObject"; var objectReq = new StorageObject(containerName, objectName); var restResp = new HttpResponseAbstraction(new MemoryStream(), new HttpHeadersAbstraction(), HttpStatusCode.InternalServerError); this.StorageServiceRestClient.Responses.Enqueue(restResp); var client = new StorageServicePocoClient(GetValidContext(), this.ServiceLocator); await client.UpdateStorageObject(objectReq); }