public async Task ShouldProcessTheMessageSuccesfully_WhenIndexProcessorAvailableForGiveIndexWriterType()
        {
            Message message = new Message();
            string  jobId   = Guid.NewGuid().ToString();

            message.UserProperties["jobId"]             = jobId;
            message.UserProperties["index-writer-type"] = SearchIndexWriterTypes.ProviderCalculationResultsIndexWriter;

            _jobManagement.GetJobById(jobId).Returns(new JobViewModel()
            {
                Id = jobId
            });
            _searchIndexProcessorFactory.CreateProcessor(SearchIndexWriterTypes.ProviderCalculationResultsIndexWriter)
            .Returns(_searchIndexProcessor);

            await _service.Process(message);

            _searchIndexProcessorFactory
            .Received(1)
            .CreateProcessor(SearchIndexWriterTypes.ProviderCalculationResultsIndexWriter);

            await _searchIndexProcessor
            .Received(1)
            .Process(message);
        }