hey, I've written a web application and I have methods which take in
a HttpServletRequest object and process the request headers.
How can I test my methods which take in HttpServletRequest object? I need to set the values of the headers, usually this is done by an external party but when I'm testing I need to manually set attributes and corresponding values. So is there a way to set these headers manually for testing purposes? or can you suggest some way I can write my test cases?
Thanks