IRequestCycle cycle = newCycle();
IMarkupWriter writer = newWriter();
MockControl assetFactoryc = newControl(AssetFactory.class);
AssetFactory assetFactory = (AssetFactory) assetFactoryc.getMock();
Resource script1 = newResource();
IAsset asset1 = newAsset(cycle, "/script1.js");
Resource script2 = newResource();
IAsset asset2 = newAsset(cycle, "/script2.js");
assetFactory.createAsset(script1, null);
assetFactoryc.setReturnValue(asset1);
assetFactory.createAsset(script2, null);
assetFactoryc.setReturnValue(asset2);
replayControls();
PageRenderSupportImpl prs = new PageRenderSupportImpl(assetFactory, "", null);