Hi,
if you want to do proper unittesting for JSP, drop them in favor of Sling models and Sightly. It's easier to unittest Sling models, and Sightly ... well, then it's time for some frontend testing technology like Selenium or Hobbes.
kind regards,
Jörg