{
IRequestCycle cycle = newCycle();
PortletURL url = newPortletURL();
MockControl control = newControl(QueryParameterMap.class);
QueryParameterMap parameters = (QueryParameterMap) control.getMock();
String[] names =
{ "Fred", "Barney" };
parameters.getParameterNames();
control.setReturnValue(names);
replayControls();
ILink link = new PortletLink(cycle, url, parameters, false);