public async Task NormalWrite() { var serviceInstance = new HealthServiceInstance { Id = "test", Name = "Test", Description = "description", HealthServiceUrl = new Uri("http://contoso.com"), ShellUrl = new Uri("http://contoso.com/shell"), }; LocalObjectStore localObjectStore = CreateLocalObjectStore(); await localObjectStore.WriteAsync(ServiceInstanceKey, serviceInstance); await _subSecretStore.Received().WriteAsync(ServiceInstanceKey, SampleUtils.GetSampleContent(ServiceInstanceSampleFile)); }