### Question:
HttpUtils { public static String originHeader(Uri uri) { StringBuilder sb = StringBuilderPool.DEFAULT.stringBuilder(); sb.append(uri.isSecured() ? "https: if (uri.getExplicitPort() != uri.getSchemeDefaultPort()) { sb.append(':').append(uri.getPort()); } return sb.toString(); } 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 computeOriginForPlainUriWithImplicitPort() { assertEquals(HttpUtils.originHeader(Uri.create("ws: }
@Test public void computeOriginForPlainUriWithDefaultPort() { assertEquals(HttpUtils.originHeader(Uri.create("ws: }
@Test public void computeOriginForPlainUriWithNonDefaultPort() { assertEquals(HttpUtils.originHeader(Uri.create("ws: }
@Test public void computeOriginForSecuredUriWithImplicitPort() { assertEquals(HttpUtils.originHeader(Uri.create("wss: }
@Test public void computeOriginForSecuredUriWithDefaultPort() { assertEquals(HttpUtils.originHeader(Uri.create("wss: }
@Test public void computeOriginForSecuredUriWithNonDefaultPort() { assertEquals(HttpUtils.originHeader(Uri.create("wss: }