public void Release_lease_when_requested()
{
_service.Start();
Thread.Sleep(TimeSpan.FromSeconds(4));
_service.Dispose();
Thread.Sleep(TimeSpan.FromSeconds(2));
var hasWebDeployLease = AzureRoleEnvironment.HasWebDeployLease();
Assert.That(hasWebDeployLease, Is.False);
Assert.That(AzureRoleEnvironment.WebDeployLeaseBlob().Metadata["InstanceId"], Is.Null);
}