node.setAttributeNode(attr);
// Mock the RequestPipeline.
RequestPipeline requestPipeline = createStrictMock(RequestPipeline.class);
if (expectFetch) {
expect(requestPipeline.execute(new HttpRequest(Uri.parse(url))))
.andReturn(new HttpResponseBuilder().setResponseString("test").create()).once();
}
replay(requestPipeline);
ContentRewriterFeature.Config config = createMock(ContentRewriterFeature.Config.class);