### Question:
Helper { public static HttpClient createAuthenticatingClient(String domain, String user, String password) { HttpClient client = new HttpClient(); client.getParams().setAuthenticationPreemptive(true); client.getState().setCredentials(new AuthScope(domain, -1), new UsernamePasswordCredentials(user, password)); return client; }  static HttpClient createAuthenticatingClient(String domain,
			String user, String password); static Object applyXPathSingleNode(InputStream xmlStream,
			String xpathExpression); static List applyXPathSeveralNodes(InputStream xmlStream,
                                              String xpathExpression); static Map<String, String> parseRequest(HttpServletRequest request);  }### Answer:
@Test public void testCreateAuthenticatingClient() { String domain = "http: String user = "user"; String password = "pass"; HttpClient result = Helper.createAuthenticatingClient(domain, user, password); assertNotNull(result); }