}
public void testEncode()
{
MockControl control = newControl(ServiceEncoding.class);
ServiceEncoding e = (ServiceEncoding) control.getMock();
e.getParameterValue(ServiceConstants.SERVICE);
control.setReturnValue("page");
e.getParameterValue(ServiceConstants.PAGE);
control.setReturnValue("Home");
e.setServletPath("/Home.html");
e.setParameterValue(ServiceConstants.SERVICE, null);
e.setParameterValue(ServiceConstants.PAGE, null);
replayControls();
PageServiceEncoder encoder = new PageServiceEncoder();
encoder.setServiceName("page");