RestHttpHelper { public HttpResponse get(String url) throws Exception { return executeRequest(url, Method.GET, null, null); } RestHttpHelper();  RestHttpHelper(int socketTimeoutMs);  RestHttpHelper(Credential credential);  RestHttpHelper(Credential credential, int socketTimeoutMs); HttpResponse get(String url); HttpResponse get(String url,
                            Map<String, String> headers); HttpResponse head(String url); HttpResponse delete(String url); HttpResponse post(String url,
                             String requestContent,
                             Map<String, String> headers); HttpResponse post(String url,
                             String requestContent,
                             String mimeType,
                             Map<String, String> headers); HttpResponse post(String url,
                             InputStream requestContent,
                             String mimeType,
                             long contentLength,
                             Map<String, String> headers); HttpResponse put(String url,
                            String requestContent,
                            Map<String, String> headers); HttpResponse put(String url,
                            String requestContent,
                            String mimeType,
                            Map<String, String> headers); HttpResponse put(String url,
                            InputStream requestContent,
                            String mimeType,
                            long contentLength,
                            Map<String, String> headers); HttpResponse multipartFilePost(String url, File file); HttpResponse multipartFileStreamPost(String url,
                                                String fileName,
                                                InputStream stream); HttpResponse multipartPost(String url, HttpEntity reqEntity);  }
@Test public void testGet() throws Exception { HttpResponse response = helper.get(getUrl()); verifyResponse(response); }
@Test public void testGetBasicAuth() throws Exception { Credential credential = new Credential("joeUser", "joesPassword"); helper = new RestHttpHelper(credential); HttpResponse response = helper.get(getUrl()); verifyResponse(response); }