@Test public void component_render_tracing() {
Request request = newMock(Request.class);
SymbolSource symbolSource = newMock(SymbolSource.class);
Page page = getMocksControl().createMock(Page.class);
Instantiator instantiator = newMock(Instantiator.class);
Location location = newMock(Location.class);
ComponentPageElementResources elementResources = newMock(ComponentPageElementResources.class);
ComponentModel model = newMock(ComponentModel.class);
getMocksControl().resetToNice();
expect(instantiator.getModel()).andReturn(model).anyTimes();
// off by default
expect(symbolSource.valueForSymbol(PRODUCTION_MODE)).andReturn("false");
expect(symbolSource.valueForSymbol(COMPONENT_RENDER_TRACING_ENABLED)).andReturn("false");
expect(request.getParameter("t:component-trace")).andReturn("false");