expect(queryParams.getFirst(QueryLexer.QUERY_FORMAT)).andReturn(null);
expect(resource.getResourceDefinition()).andReturn(resourceDefinition);
expect(resourceDefinition.getRenderer(null)).andReturn(renderer);
expect(uriInfo.getRequestUri()).andReturn(uri).anyTimes();
expect(body.getQueryString()).andReturn("blahblahblah");
expect(compiler.compile("blahblahblah")).andThrow(exception);
replay(compiler, uriInfo, queryParams, resource,
resourceDefinition, body);
Result processResult = request.process();