}
@Test
public void renderOpenSocial() {
Page page = new Page(1L, new User(VALID_USER_ID, VALID_USER_NAME));
Region region = new Region(1L, page, 1);
page.setRegions(Arrays.asList(region));
Widget w = new Widget();
w.setType("OpenSocial");
w.setEntityId(1L);
w.setTitle("Gadget Title");
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()));