RequestPageCache cache = mockRequestPageCache();
Page page = mockPage();
ComponentPageElement element = mockComponentPageElement();
InternalComponentResources resources = mockInternalComponentResources();
MetaDataLocator locator = mockMetaDataLocator();
Request request = mockRequest();
String pageName = "MyPage";
String encoding = "ostritch";
train_get(cache, pageName, page);
train_getRootElement(page, element);
train_getComponentResources(element, resources);
train_findMeta(locator, TapestryConstants.RESPONSE_CONTENT_TYPE, resources, "text/html");
train_findMeta(locator, TapestryConstants.RESPONSE_ENCODING, resources, encoding);
request.setEncoding(encoding);
replay();
RequestEncodingInitializer init = new RequestEncodingInitializerImpl(cache, locator,
request);