IRequestCycle cycle = (IRequestCycle) cyclec.getMock();
MockControl pagec = newControl(IPage.class);
IPage page = (IPage) pagec.getMock();
ServiceEncoding encoding = (ServiceEncoding) newMock(ServiceEncoding.class);
cycle.getPage();
cyclec.setReturnValue(page);
cycle.getPage();
cyclec.setReturnValue(page);
page.getPageName();
pagec.setReturnValue("MyPage");
page.getPageName();
pagec.setReturnValue("MyPage");
request.getParameterNames();
requestc.setReturnValue(Arrays.asList(new Object[]
{ "foo", "state:MyPage", "state:OtherPage" }));
request.getParameterValue("state:MyPage");
requestc.setReturnValue("ENCODED");
request.getParameterValue("state:OtherPage");
requestc.setReturnValue("ENCODED");
encoding.setParameterValue("state:MyPage", "ENCODED");
replayControls();
ClientPropertyPersistenceStrategy strategy = new ClientPropertyPersistenceStrategy();
strategy.setRequest(request);