requestObject.put("type", "keyindex");
requestObject.put("key", "weight");
this.ctx = new RexsterResourceContext(null, null, null, requestObject, null, null, null, null);
ExtensionResponse response = batchExtension.getEdges(this.ctx, graph);
Assert.assertEquals(Response.Status.OK.getStatusCode(), response.getJerseyResponse().getStatus());
JSONObject entity = (JSONObject) response.getJerseyResponse().getEntity();
Assert.assertNotNull(entity);
Assert.assertTrue(entity.has(Tokens.RESULTS));
JSONArray results = entity.optJSONArray(Tokens.RESULTS);