public void Should_throw_not_found_exception_when_hearing_not_found()
        {
            var serverErrorException = new BookingsApiException("msg", 500, "resp", null, null);

            _bookingsApiClient.Setup(x => x.UpdateSuitabilityAnswersAsync(_hearingId, _participantId, new List <SuitabilityAnswersRequest>())).ThrowsAsync(serverErrorException);

            // the exception is rethrown
            Assert.ThrowsAsync <BookingsApiException>(async() => await _participantService.UpdateSuitabilityAnswers(_hearingId, _participantId, new List <SuitabilityAnswer>()));
        }