title: How to test a HTTP request
body: <p>I have set up this simple http request, which simply returns a "hello world" response to my IDE terminal. I have been looking into testing and I am not quite sure how i would test what this method is returning.</p>
  
  <p>Currently i have done my own research into JUnit, but again i am not even sure if this would be the correct tool to use for this problem. I only researched this as it is a Java tool.</p>
  
  <pre><code>public static void newRequest() throws IOException {
  
      URL helloServer = new URL("http://localhost:5050/");
  
      HttpRequestFactory requestFactory = new NetHttpTransport().createRequestFactory();
      HttpRequest request = requestFactory.buildGetRequest(new GenericUrl(helloServer));
  
      HttpResponse rawResponse = request.execute();
      String responseString = rawResponse.parseAsString();
  
      logger.debug(responseString);
  
  }
  </code></pre>
  
  <p>Any guidance on this would be greatly appreciated.
  Does the function even need to be tested?</p>