RegionWidget rw = new RegionWidgetImpl("1", w.getId(), region);
region.setRegionWidgets(Arrays.asList(rw));
RegionWidgetWrapper wrapper = new RegionWidgetWrapper(w, rw);
RenderContext context = new RenderContext();
context.setProperties(new HashMap());
String rendered = service.render(wrapper, context);
assertThat(rendered, is(notNullValue()));
assertThat(rendered.contains("<!--"), is(true));
assertThat(scriptManager.getScriptBlocks(ScriptLocation.AFTER_RAVE, context).size(), is(equalTo(1)));
}