{
WebRequest request = newRequest();
IRequestCycle cycle = newCycle();
IPage page = newPage();
ServiceEncoding encoding = (ServiceEncoding) newMock(ServiceEncoding.class);
trainGetPage(cycle, page);
trainGetPageName(page, "MyPage");
trainGetPage(cycle, page);
trainGetPageName(page, "MyPage");
trainGetParameterNames(request, new String[]
{ "foo", "state:MyPage", "state:OtherPage" });
trainGetParameterValue(request, "state:MyPage", "ENCODED1");
trainGetParameterValue(request, "state:OtherPage", "ENCODED2");
encoding.setParameterValue("state:MyPage", "ENCODED1");
replayControls();
PageClientPropertyPersistenceScope scope = new PageClientPropertyPersistenceScope();
scope.setRequestCycle(cycle);