private void testHappyCaseMultiFetchHTTPRequest() throws Exception { HttpPost post = new HttpPost(getBatchMetricsQueryURI()); JSONArray metricsToGet = new JSONArray(); for (Locator locator : locators) { metricsToGet.add(locator.toString()); } HttpEntity entity = new StringEntity(metricsToGet.toString(), ContentType.APPLICATION_JSON); post.setEntity(entity); HttpResponse response = client.execute(post); Assert.assertEquals(200, response.getStatusLine().getStatusCode()); }