In an effort to improve our unit tests, we are migrating to HtmlUnit 1.4 .
This version of HtmlUnit has much improved support for Javascript allowing
the testing of items such as the generated onclick of CommandButton.
HtmlUnit can be found here:
http://htmlunit.sourceforge.net
-rl