{
IRequestCycle cycle = newCycle();
IPage activePage = newPage();
IPage componentPage = newPage();
IAction action = newAction();
ResponseRenderer rr = newResponseRenderer();
trainGetParameter(cycle, ServiceConstants.COMPONENT, "fred.barney");
trainGetParameter(cycle, ServiceConstants.CONTAINER, "ComponentPage");
trainGetParameter(cycle, ServiceConstants.PAGE, "ActivePage");
trainGetParameter(cycle, "action", "action-id");
trainGetParameter(cycle, ServiceConstants.SESSION, null);
trainGetPage(cycle, "ActivePage", activePage);
cycle.activate(activePage);
trainGetPage(cycle, "ComponentPage", componentPage);
trainGetNestedComponent(componentPage, "fred.barney", action);
cycle.rewindPage("action-id", action);
rr.renderResponse(cycle);
replayControls();
ActionService as = new ActionService();
as.setResponseRenderer(rr);