    @Test
    public void testSameOriginWithDifferentPorts() throws Exception {

        URL currentURL = new URL("http://example.com:8080/path");
        URL redirectURL = new URL("http://example.com:8081/path");
        assertFalse(shouldFollowRedirect(ORIGIN, currentURL, redirectURL));
    }