public async Task TestCloseForUpdate()
        {
            application.CanClose().Returns(Task.FromResult(true));
            var updateService = new UpdateService(data, clientFactory, applicationVersion, application, fileSystem,
                                                  standaloneUpdate, settings, platformService);

            await updateService.CloseForUpdate();

            await application.Received().CanClose();

            application.Received().ForceClose();
            standaloneUpdate.Received().Launch();
        }