assertThatMutipleGetWorksFor(20);
}
private void assertThatMutipleGetWorksFor(int numberOfQueries) {
Response response = makeRequest(
Request
.GET()
.url(
testServerUrl()
.path(URL_QUERIES)
.addQueryParameter("queries", numberOfQueries + ""))
.contentTypeApplicationJson());
// Just make sure that we get back an array
assertThat(response.payloadAs(World[].class).length, is(numberOfQueries));
}