new DefaultJsProcessorRegistry(
ImmutableList.<JsProcessor>of(new IfModifiedSinceProcessor()),
ImmutableList.<JsProcessor>of(jsLoadProcessor, getJsProcessorMock, new AddOnloadFunctionProcessor()),
ImmutableList.<JsProcessor>of());
jsServingPipeline = new DefaultJsServingPipeline(jsProcessorRegistry);
servlet.setJsServingPipeline(jsServingPipeline);
// TODO: Abstract this out into a helper function associated with Uri class.
expect(request.getScheme()).andReturn("http");
expect(request.getServerPort()).andReturn(8080);