I already tried that but failed. Only pass an instance of application class to the tester don't work. Is need configure the pom.xml too or put the html dir on build path.
I resolved configuring the pom.xml as: <resource> <filtering>false</filtering> <directory>src/main/webapp/WEB-INF/html</directory> <includes> <include>**</include> </includes> </resource> Thanks!