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