expect(context.isJsload()).andStubReturn(false);
expect(context.isNohint()).andStubReturn(false);
expect(context.getExtensionParams()).andStubReturn(params);
expect(context.getOrigUri()).andStubReturn(null);
expect(context.getCompileMode()).andStubReturn(compileMode);
expect(context.cajoleContent()).andStubReturn(false);
expect(context.getRepository()).andStubReturn(repository);
replay(context);
return context;
}