private RenderContext context;
private ScriptManager scriptManager;
@Before
public void setup() throws JspException {
context = new RenderContext();
service = createNiceMock(RenderService.class);
scriptManager = createMock(ScriptManager.class);
WebApplicationContext wContext = createNiceMock(WebApplicationContext.class);
expect(wContext.getBean(RenderService.class)).andReturn(service).anyTimes();
expect(wContext.getBean(ScriptManager.class)).andReturn(scriptManager).anyTimes();