ComponentResources sourceResources = mockComponentResources();
Logger logger = mockLogger();
RequestPageCache cache = mockRequestPageCache();
Page page = mockPage();
LinkFactory factory = mockLinkFactory();
Response response = mockResponse();
Link link = mockLink();
train_getComponentResources(value, valueResources);
train_getContainer(valueResources, containerResources);
train_getComponentResources(source, sourceResources);
train_getCompleteId(sourceResources, PAGE_NAME + ":source");
train_getCompleteId(valueResources, PAGE_NAME + ":child");
logger
.warn("Method foo.bar.Baz.biff() (for component Zoop:source) returned component Zoop:child, which is not a page component. The page containing the component will render the client response.");
train_getPageName(valueResources, PAGE_NAME);
train_get(cache, PAGE_NAME, page);
train_createPageLink(factory, page, link);
train_toRedirectURI(link, LINK_URI);
response.sendRedirect(LINK_URI);
replay();
ComponentEventResultProcessor<Component> processor = new ComponentInstanceResultProcessor(
cache, factory, logger);