Personally, I'd test the functionality outside of the servlet. I use servlets (well, not really, but their equivalent) only to marshall data to service objects (or similar). I keep functionality isolated from the Servlet spec as much as possible to make testing easier.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: How t write JUnit Test Cases for my servlet