assertEquals("/bigWebApp/hello", response.getRedirectedUrl());
assertEquals("http: response.getRedirectedUrl());
    public void testOperationWhenHttpsRequestsButHttpsPortUnknown()        throws Exception {        AuthenticationProcessingFilterEntryPoint ep = new AuthenticationProcessingFilterEntryPoint();        ep.setLoginFormUrl("/hello");        ep.setPortMapper(new PortMapperImpl());        ep.setPortResolver(new MockPortResolver(8888, 1234));        ep.setForceHttps(true);        ep.afterPropertiesSet();        MockHttpServletRequest request = new MockHttpServletRequest();        request.setRequestURI("/some_path");        request.setContextPath("/bigWebApp");        request.setScheme("http");        request.setServerName("www.example.com");        request.setContextPath("/bigWebApp");        request.setServerPort(8888); // NB: Port we can't resolve        MockHttpServletResponse response = new MockHttpServletResponse();        ep.afterPropertiesSet();        ep.commence(request, response, null);        // Response doesn't switch to HTTPS, as we didn't know HTTP port 8888 to HTTP port mapping        assertEquals("/bigWebApp/hello", response.getRedirectedUrl());    }