final String url = getHttpBaseUri() + "graphs/gratefulgraph/tp/gremlin?script=" + URLEncoder.encode("g.v(x)") + "¶ms.x=";
for (int ix = 1; ix < 801; ix++) {
final ClientRequest request = ClientRequest.create().build(URI.create(url + String.valueOf(ix)), "GET");
final ClientResponse response = httpClient.handle(request);
final JSONObject json = response.getEntity(JSONObject.class);
Assert.assertEquals(ix, json.optJSONArray("results").optJSONObject(0).optInt("_id"));
}
}
private void tryRestApi() throws Exception {
final String url = getHttpBaseUri() + "graphs/gratefulgraph/vertices/";