public void testGetAbsoluteURL() throws Exception
{
WebRequest request = newRequest();
IRequestCycle rc = newCycle();
EngineServiceLink l = new EngineServiceLink(rc, "/ctx/app", ENCODING, _urlCodec, request,
buildParameters("myservice", null), false);
trainGetScheme(request, "HTTP");
trainGetServerName(request, "TESTSERVER.COM");
trainGetServerPort(request, 9187);
replayControls();
assertEquals("HTTP://TESTSERVER.COM:9187/ctx/app?service=myservice", l.getAbsoluteURL());
verifyControls();
}