### Question:
Http { public InputStream submitGetWithoutAuthentication(String url) { InputStream response = null; try { URL u = new URL(url); HttpURLConnection connection = (HttpURLConnection) u.openConnection(); response = getResponseFrom(connection); } catch (IOException e) { throw new RuntimeException("Error with connection.", e); } return response; } Http(String user, String password); String submitPost(String url, byte[] postData); String submitGet(String url); InputStream submitGetWithoutAuthentication(String url);  }### Answer:
@Test public void sendingGetWithoutAuthentication() throws Exception { Http http = new Http("user", "pw"); InputStream is = http.submitGetWithoutAuthentication("http: String response = IOUtils.toString(is); assertThat(response, containsString("<httpMethod>GET</httpMethod>")); assertThat(response, containsString("<basicAuth>none</basicAuth>")); }