this.renderer = new XWikiVelocityRenderer();
this.mockXWiki = mock(XWiki.class);
this.mockXWiki.stubs().method("getSkin").will(returnValue("default"));
this.mockXWiki.stubs().method("getSkinFile").will(returnValue(null));
this.mockXWiki.stubs().method("getResourceContent").will(returnValue(null));
<BUG>this.mockXWiki.stubs().method("prepareResources");
getContext().setWiki((XWiki) this.mockXWiki.proxy());</BUG>
this.mockContentDocument = mock(XWikiDocument.class);
this.contentDocument = (XWikiDocument) this.mockContentDocument.proxy();
this.mockDocument = mock(XWikiDocument.class);

this.renderer = new XWikiVelocityRenderer();
this.mockXWiki = mock(XWiki.class);
this.mockXWiki.stubs().method("getSkin").will(returnValue("default"));
this.mockXWiki.stubs().method("getSkinFile").will(returnValue(null));
this.mockXWiki.stubs().method("getResourceContent").will(returnValue(null));
this.mockXWiki.stubs().method("prepareResources");
this.mockXWiki.stubs().method("getStore").will(returnValue(null));
getContext().setWiki((XWiki) this.mockXWiki.proxy());
this.mockContentDocument = mock(XWikiDocument.class);
this.contentDocument = (XWikiDocument) this.mockContentDocument.proxy();
this.mockDocument = mock(XWikiDocument.class);
