HttpRequestHandler { public static HttpResponse sendPostRequest(URI request, ArrayList<NameValuePair> parameters) throws IOException { HttpClient httpClient = HttpClients.createDefault(); List<NameValuePair> urlParameters = new ArrayList<>(); HttpPost httpPostRequest = new HttpPost(request); if (parameters != null) { for (NameValuePair parameter : parameters) { urlParameters.add(new BasicNameValuePair(parameter.getName(), parameter.getValue())); } httpPostRequest.setEntity(new UrlEncodedFormEntity(urlParameters)); } return httpClient.execute(httpPostRequest); }  static HttpResponse sendGetRequest(URI request); static HttpResponse sendPostRequest(URI request, ArrayList<NameValuePair> parameters); static HttpResponse sendMultipartRequest(URI request, Map<String, File> files, Map<String, String>
            textBody); static String printResponse(HttpResponse response); static void saveResponseToFile(HttpResponse response, File destinationFile);  }
@Test public void testSendPostRequest() { String request = "http: try { HttpRequestHandler.sendGetRequest(new URI(request)); } catch (IOException | URISyntaxException e) { assertTrue(true); } }