}
public void testEncodeStateless()
{
MockControl control = newControl(ServiceEncoding.class);
ServiceEncoding encoding = (ServiceEncoding) control.getMock();
train(control, encoding, ServiceConstants.SERVICE, Tapestry.DIRECT_SERVICE);
train(control, encoding, ServiceConstants.PAGE, "admin/Menu");
train(control, encoding, ServiceConstants.SESSION, null);
train(control, encoding, ServiceConstants.COMPONENT, "border.link");
encoding.setServletPath("/admin/Menu,border.link.direct");
encoding.setParameterValue(ServiceConstants.SERVICE, null);
encoding.setParameterValue(ServiceConstants.PAGE, null);
encoding.setParameterValue(ServiceConstants.SESSION, null);
encoding.setParameterValue(ServiceConstants.COMPONENT, null);
replayControls();
DirectServiceEncoder encoder = new DirectServiceEncoder();
encoder.setStatelessExtension("direct");