@Test
        public void pathWithLeadingSlash_DoubleSlashStillUrlEncodedWhenUrlEncodeSetToFalse() {
            Request<?> request = newRequest();
            request.setResourcePath("/foo/bar");
            URL url = RuntimeHttpUtils.convertRequestToUrl(request, false, false);
            assertUrlEquals("https://test.amazonaws.com/%2Ffoo/bar", url);
        }
Unit tests for {@link RuntimeHttpUtils#convertRequestToUrl(Request, boolean, boolean)}.
aws-java-sdk-core/src/test/java/com/amazonaws/util/RuntimeHttpUtilsTest.java