HttpURLConnection connect = getConnection(RESOURCE_URI);
connect.setRequestMethod("GET");
connect.connect();
int r = connect.getResponseCode();
assertEquals("Server returned response code " + r, 200, r);
<BUG>System.out.println(readResponse(connect.getInputStream()));
}
protected HttpURLConnection preparePost(String content) throws IOException {
HttpURLConnection connect = getConnection(RESOURCE_URI);</BUG>
connect.setRequestMethod("POST");

HttpURLConnection connect = getConnection(RESOURCE_URI);
connect.setRequestMethod("GET");
connect.connect();
int r = connect.getResponseCode();
assertEquals("Server returned response code " + r, 200, r);
System.out.println(readResponse(connect.getInputStream()));
} catch (Exception e) {
fail(e.getMessage());
}
}
protected HttpURLConnection preparePost(String content) {
try {
HttpURLConnection connect = getConnection(RESOURCE_URI);
connect.setRequestMethod("POST");
