// running other rewrites besides JSStringTransformer. We are
// only testing JSStringTransformer here.
JSStringTransformer transformer = new JSStringTransformer();
renderer.setTransformer(transformer);
ResultURIConverter proxyURIConverter = new ProxyHttpsResultURIConverter();
ContextResultURIConverterFactory converterFactory =
new IdentityResultURIConverterFactory(proxyURIConverter);
renderer.setConverterFactory(converterFactory);
renderer.setRewriteHttpsOnly(true);