IRequestCycle rc = (IRequestCycle) control.getMock();
rc.encodeURL("/context/servlet?service=myservice");
control.setReturnValue("/context/servlet?service=myservice;encoded");
EngineServiceLink l = new EngineServiceLink(rc, "/context/servlet", ENCODING, _urlCodec,
request, buildParameters("myservice", null), true);
replayControls();
assertEquals("/context/servlet?service=myservice;encoded", l.getURL());
verifyControls();
checkList("parameterNames", new String[]
{ Tapestry.SERVICE_QUERY_PARAMETER_NAME, Tapestry.PARAMETERS_QUERY_PARAMETER_NAME }, l
.getParameterNames());
}