### Question:
HttpUtils { public static String hostHeader(Uri uri) { String host = uri.getHost(); int port = uri.getPort(); return port == -1 || port == uri.getSchemeDefaultPort() ? host : host + ":" + port; } private  HttpUtils(); static String hostHeader(Uri uri); static String originHeader(Uri uri); static Charset extractContentTypeCharsetAttribute(String contentType); static String extractContentTypeBoundaryAttribute(String contentType); static byte[] computeMultipartBoundary(); static String patchContentTypeWithBoundaryAttribute(CharSequence base, byte[] boundary); static boolean followRedirect(AsyncHttpClientConfig config, Request request); static ByteBuffer urlEncodeFormParams(List<Param> params, Charset charset); static CharSequence filterOutBrotliFromAcceptEncoding(String acceptEncoding); static final AsciiString ACCEPT_ALL_HEADER_VALUE; static final AsciiString GZIP_DEFLATE; }### Answer:
@Test public void testGetHostHeader() { Uri uri = Uri.create("http: String hostHeader = HttpUtils.hostHeader(uri); assertEquals(hostHeader, "stackoverflow.com", "Incorrect hostHeader returned"); }