This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
To test a web application, you can use JWebUnit or Selenium. The former is pure Java code to write tests, but doesn't execute in a real browser. There are a few ways to write Selenium tests - one is Java - and it does run in a real browser