### Question:
HttpUtils { public static boolean isUsingNonDefaultPort(URI uri) { final String scheme = StringUtils.lowerCase(uri.getScheme()); final int port = uri.getPort(); if (port <= 0) { return false; } if ("http".equals(scheme) && port == PORT_HTTP) { return false; } if ("https".equals(scheme) && port == PORT_HTTPS) { return false; } return true; }  static String urlEncode(final String value, final boolean path); static String urlDecode(final String value); static boolean isUsingNonDefaultPort(URI uri); static boolean usePayloadForQueryParameters(Request<?> request); static String encodeParameters(Request<?> request); static String appendUri(String baseUri, String path); static String appendUri(final String baseUri, String path,
            final boolean escapeDoubleSlash); static InputStream fetchFile(
            final URI uri,
            final ClientConfiguration config);  }### Answer:
@Test public void testIsUsingNonDefaultPort() throws URISyntaxException { final URI http = new URI("http: assertFalse(HttpUtils.isUsingNonDefaultPort(http)); final URI https = new URI("https: assertFalse(HttpUtils.isUsingNonDefaultPort(https)); }