@Test
    public void testCompute_whenServerIsNotUsingDefaultHttpPort() {
        val context = MockWebContext.create();
        context.setServerName("pac4j.com");
        context.setServerPort(8080);

        val result = resolver.compute("/cas/login", context);

        assertEquals("http://pac4j.com:8080/cas/login", result);
    }
Tests the {@link DefaultUrlResolver}.

@author Jerome Leleu
@since 1.8.1
pac4j-core/src/test/java/org/pac4j/core/http/url/DefaultUrlResolverTests.java