rewrite as expect(request1, throwsA(new isInstanceOf<FailedRequestException>("FailedRequestException")));