Instead, I recommend HtmlUnit. No disrespect for HttpUnit: I used it a few years ago and it worked fine. However, he died as a project for a number of years, and more specifically, he didn't support much Javascript, so I switched to HtmlUnit
HtmlUnit has been growing steadily since its inception and has exceptional Javascript support. I used it to test sites containing a lot of Ajax, and only once, I think, it did not execute the JS code correctly (it turned out that it was an HtmlUnit error that I fixed). There are many hooks available to help you check what is happening.
, , "HtmlUnit " " , Canoo WebTest, JWebUnit, WebDriver, JSFUnit, Celerity,..." , Java, , HtmlUnit .