public class MockHttpServletRequestTest extends WicketTestCase
{
@Test
public void setAbsoluteUrlWithHost()
{
WicketTester tester = new WicketTester();
MockHttpServletRequest request = tester.getRequest();
assertEquals("http", request.getScheme());
assertEquals("localhost", request.getServerName());
assertEquals(80, request.getServerPort());
request.setURL("https://myhost.mydomain.org:1234/foo/bar/baz.html?a=123&b=456");