I want to test my servlet with http://www.easymock.org/
How do I write the Unit Testing Code?
I update my code with your responce.
I just used Google
I prefer using spring-test and the MockHttpServletRequest and MockHttpServletResponse. They are more stub like than mocks, but work really well.
This answer has information regarding the usage: How to test my servlet using JUnit