@Test(expected = SdkClientException.class)
        public void endpointWithoutProtocol_ThrowsSdkClientException() {
            Request<?> request = new DefaultRequest<Object>("foo");
            request.setEndpoint(URI.create("foo.amazon.com"));
            request.setResourcePath("foo/bar");
            RuntimeHttpUtils.convertRequestToUrl(request, false, false);
        }
Unit tests for {@link RuntimeHttpUtils#convertRequestToUrl(Request, boolean, boolean)}.
aws-java-sdk-core/src/test/java/com/amazonaws/util/RuntimeHttpUtilsTest.java