### Question:
HttpClientManager { HttpGet createGetMethod(String url, Map<String, HttpParamInfo> params, String charset, Boolean followRedirects) { if (params != null) { final StringBuilder urlParamsBuilder = new StringBuilder(); final Iterator<Entry<String, HttpParamInfo>> iterator = params.entrySet().iterator(); while (iterator.hasNext()) { final Entry<String, HttpParamInfo> entry = iterator.next(); final HttpParamInfo httpParamInfo = entry.getValue(); try { urlParamsBuilder.append(entry.getKey()) .append("=") .append(URLEncoder.encode(CommonUtil.nvl( httpParamInfo.getValue(), ""), charset)); } catch (UnsupportedEncodingException e) { throw new org.webharvest.exception.HttpException("Charset " + charset + " is not supported!", e); } if (iterator.hasNext()) { urlParamsBuilder.append("&"); } } if (urlParamsBuilder.length() != 0) { final String urlParams = urlParamsBuilder.toString(); if (url.indexOf("?") < 0) { url += "?" + urlParams; } else if (url.endsWith("&")) { url += urlParams; } else { url += "&" + urlParams; } } } final HttpGet method = new HttpGet(url); method.getParams().setParameter("http.protocol.handle-redirects", followRedirects); return method; } @Inject  HttpClientManager(final ProxySettings proxySettings); void setCookiePolicy(String cookiePolicy); HttpResponseWrapper execute(
            String methodType,
            Boolean followRedirects,
            String contentType,
            String url,
            String charset,
            String username,
            String password,
            Variable bodyContent, Map<String, HttpParamInfo> params,
            Map<String, String> httpHeaderMap, int retryAttempts, long retryDelay, double retryDelayFactor); HttpInfo getHttpInfo(); HttpClient getHttpClient(); static final String DEFAULT_USER_AGENT; }### Answer:
@Test public void createGetMethodNoHttpParams() { final HttpGet get = manager.createGetMethod("http: new HashMap<String, HttpParamInfo>(), CHARSET, false); assertEquals("Unexpected URI created", "http: }
@Test public void createGetMethodWithHttpParams() { final Map<String, HttpParamInfo> params = new LinkedHashMap<String, HttpParamInfo>(); params.put("param1", new HttpParamInfo("param1", false, null, null, new NodeVariable("param1Value"))); params.put("param2", new HttpParamInfo("param2", false, null, null, new NodeVariable("param2Value"))); final HttpGet get = manager.createGetMethod("http: params, CHARSET, false); assertEquals("Unexpected URI created", "http: get.getURI().toString()); }