I've managed to mock up all my services in a separate Module class, and got the PageTester working. But there are a few things that I still haven't found a solution for:
1. context-assets don't work. My project structure is like this: <Project>/src: all java and tml files <Project>/web/WEB-INF/classes: all class and tml files <Project>/web/WEB-INF/classes: all class and tml files <Project>/web: Web application root I'm getting an error when a page tries to do "asset:context:/img/banner.gif". It works in the real application. 2. Activation context doesn't work The page url "item/edit" is a valid url, while "item/edit/1" is considered a bad url, no page exists with the name "item/edit/1". It works in the real application. I'm using ActivationContext annotation, I'll try with onActivate and onPassivate instead.