rewrite as expect(request2, throwsA(new isInstanceOf("FailedRequestException")));