Fix argument in call to applyReturnValueValidation() method in MethodValidationInterceptor.java. Method argument was passed instead of the return value of the method that was being validated.

Closes gh-33092

Comment From: pivotal-cla

@imvtsl Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: pivotal-cla

@imvtsl Thank you for signing the Contributor License Agreement!

Comment From: imvtsl

@rstoyanchev Please review.

Comment From: imvtsl

Sure. I am working on adding test now.

Comment From: imvtsl

@rstoyanchev I added tests to MethodValidationProxyTests. In tests, I changed expected exception from ValidationException to ConstraintViolationException as ConstraintViolationException is more specific. I hope that's okay?

I read CONTRIBUTING.md and I have a query. Should I sqaush these 2 commits into one or is it okay?

Comment From: rstoyanchev

I've squashed them for you and updated the tests a bit.