protected ResourceHolder<KeyIndexResource> constructKeyIndexResource(final boolean useToyGraph,
final HashMap<String, Object> parameters,
final MediaType mediaType) {
// add key indices to the toy graph
final KeyIndexableGraph keyIndexableGraph = (KeyIndexableGraph) this.toyGraph;
keyIndexableGraph.createKeyIndex("name", Vertex.class);
keyIndexableGraph.createKeyIndex("test", Vertex.class);
keyIndexableGraph.createKeyIndex("weight", Edge.class);
final UriInfo uri = this.mockery.mock(UriInfo.class);
final HttpServletRequest httpServletRequest = this.mockery.mock(HttpServletRequest.class);
final Request request = this.mockery.mock(Request.class);