Alex Chaffee You may want to look into
HttpUnit for doing unit testing, esp. the ServletUnit section. It's integrated with
JUnit and allows you to do programmatic testing of servlets in-process or remotely -- i.e. check response text or response codes or whatever you like.