### Question:
HttpClient { public static String getConn(String url) throws Exception { HttpURLConnection conn = (HttpURLConnection) new URL(url).openConnection(); conn.setRequestMethod(GET); conn.setConnectTimeout(CONNECT_TIMEOUT); conn.setReadTimeout(READ_TIMEOUT); conn.setDoInput(true); conn.setDoOutput(true); conn.setUseCaches(false); int status = conn.getResponseCode(); if (status >= 200 && status < 300) { return readStream(conn.getInputStream()); } else { LogUtil.error(logger, readStream(conn.getErrorStream())); throw new ClientProtocolException("Response Error Status: " + status); } }  static String get(String url); static String post(String url, List<NameValuePair> params); static String post(String url, Map<String, String> map); static String post(String url, String param); static String getConn(String url); static String postConn(String url, String param); static String upload(String path, InputStream is, String fileName); static String createUrl(String url, Map<String, Object> params);  }### Answer:
@Test public void getConn() throws Exception { System.out.println(HttpClient.getConn(url)); }