public async Task CannotStoreOverExisting() { var timeout = new CancellationTokenSource(1000).Token; var(activator, identity, _) = await GetActivatedClusterIdentity(timeout); var otherPid = Activate(activator, identity); _storage.Invoking(storage => storage.StoreActivation(activator.Id, new SpawnLock("someLockId", identity), otherPid, timeout) ).Should().Throw <LockNotFoundException>(); }