This PR includes mock implementation for org.springframework.web.servlet.function.ServerRequest and also I added a small refactoring change that make usage of inner record type instead of inner class for mocking the headers This is my first contribution so please let me know if there is there anything that I need to improve to make this PR ready to be merged Ref: #31087