{
MockControl cyclec = newControl(IRequestCycle.class);
IRequestCycle cycle = (IRequestCycle) cyclec.getMock();
MockControl requestc = newControl(PortletRequest.class);
PortletRequest request = (PortletRequest) requestc.getMock();
PortletRenderer renderer = (PortletRenderer) newMock(PortletRenderer.class);
trainGetParameter(cyclec, cycle, PortletConstants.PORTLET_MODE, "view");
trainGetParameter(cyclec, cycle, PortletConstants.WINDOW_STATE, "normal");