final UriInfo uri = mockTheUri(true, "created");
// can do a slimmed down RexsterResourceContext
this.ctx = new RexsterResourceContext(this.rag, uri, null, null, null, new ExtensionMethod(null, null, null, null), null, null);
ExtensionResponse extResp = this.framesExtension.doFramesWorkOnEdge(this.ctx, this.graph, this.graph.getEdge(11), "bad-direction");
Assert.assertNotNull(extResp);
Assert.assertNotNull(extResp.getJerseyResponse());
Response response = extResp.getJerseyResponse();
Assert.assertEquals(Response.Status.BAD_REQUEST.getStatusCode(), response.getStatus());
JSONObject jsonObject = (JSONObject) response.getEntity();
Assert.assertNotNull(jsonObject);
Assert.assertTrue(jsonObject.has("success"));