for (GraphTestHolder testGraph : this.testGraphs) {
ClientResponse response = doGraphGet(testGraph, "vertices");
JSONObject verticesJson = response.getEntity(JSONObject.class);
JSONArray verticesToDelete = verticesJson.optJSONArray(Tokens.RESULTS);
for (int ix = 0; ix < verticesToDelete.length(); ix++) {
this.client.handle(ClientRequest.create().build(createUri("/" + testGraph.getGraphName() + "/vertices/" + encode(verticesToDelete.optJSONObject(ix).optString(Tokens._ID))), "DELETE"));
}
if (testGraph.getFeatures().supportsIndices) {
response = doGraphGet(testGraph, "indices");
JSONObject indicesJson = response.getEntity(JSONObject.class);