w.setUrl("http://www.example.com/gadget.xml");
RegionWidget rw = new RegionWidget(1L, w, region);
region.setRegionWidgets(Arrays.asList(rw));
RenderContext context = new RenderContext();
context.setProperties(new HashMap());
String rendered = service.render(rw, context);
assertThat(rendered, is(notNullValue()));
assertThat(rendered.contains("<!--"), is(true));
assertThat(scriptManager.getScriptBlocks(ScriptLocation.AFTER_RAVE, context).size(), is(equalTo(1)));
}