Hi, I am working for my bots tests to a depency injectioned way to provide Pages objects. I used snakeguice
https://code.google.com/p/snake-guice/ to inject a Page class provider into my bots (this is not online yet, I'll commit soon, unfortunaltely the documentation is not up to date and complete, better check the snakeguice example apps for a better understanding)
The idea is : write your code as if you did not care about if the code of the page is provided by a Wikipage regular object or by a stub or test object ; at the startup the application id wired up and the type of the object to provide is decided. You will assume the page getter will return some page content, and don't care about it come from a piped command or the original page