graphHolder.getVertexIdSet().put(v.getId().toString(), id);
}
protected void postEdge(GraphTestHolder graphHolder, Edge e) throws JSONException {
ClientRequest request = ClientRequest.create().build(createUri("/" + graphHolder.getGraphName() + "/edges"), "POST");
JSONObject jsonEdge = typeTheElement(GraphSONUtility.jsonFromElement(e, null, GraphSONMode.NORMAL));
jsonEdge.put(Tokens._IN_V, graphHolder.getVertexIdSet().get(jsonEdge.optString(Tokens._IN_V)));
jsonEdge.put(Tokens._OUT_V, graphHolder.getVertexIdSet().get(jsonEdge.optString(Tokens._OUT_V)));
request.setEntity(jsonEdge);
List<Object> headerValue = new ArrayList<Object>() {{
add(RexsterMediaType.APPLICATION_REXSTER_TYPED_JSON);
}};
request.getHeaders().put("Content-Type", headerValue);
ClientResponse response = this.client.handle(request);
JSONObject jsonObject = response.getEntity(JSONObject.class);
String id = jsonObject.optJSONObject(Tokens.RESULTS).optString(Tokens._ID);