ComponentResources sourceResources = mockComponentResources();
Log log = mockLog();
RequestPageCache cache = mockRequestPageCache();
Page page = mockPage();
LinkFactory factory = mockLinkFactory();
Response response = mockResponse();
Link link = mockLink();
train_getComponentResources(child, childResources);
train_getContainer(childResources, container);
train_getComponentResources(source, sourceResources);
train_getCompleteId(sourceResources, PAGE_NAME + ":source");
train_getCompleteId(childResources, PAGE_NAME + ":child");
train_getPage(childResources, root);
train_getComponentResources(root, rootResources);
train_getCompleteId(rootResources, PAGE_NAME);
train_getByClassName(cache, PAGE_NAME, page);
log
.warn("Method foo.bar.Baz.biff() (for component foo.bar.Zoop:source) returned component foo.bar.Zoop:child, which is not a page component. The page containing the component will render the client response.");
train_createPageLink(factory, page, link);
train_toRedirectURI(link, LINK_URI);
response.sendRedirect(LINK_URI);
replay();
ComponentEventResultProcessor<Component> processor = new ComponentInstanceResultProcessor(
cache, factory, log);