@Test
    public void testCompute_whenRequestIsSecure() {
        val context = MockWebContext.create();
        context.setScheme("https");
        context.setSecure(true);
        context.setServerPort(443);

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

        assertEquals("https://localhost/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