ContainerConfig containerConfig = EasyMock.createMock(ContainerConfig.class);
EasyMock.expect(containerConfig.<String>getList(null, "gadgets.parentOrigins")).andReturn(Collections.<String>singletonList("*")).anyTimes();
EasyMock.replay(containerConfig);
servlet.setContainerConfig(containerConfig);
servlet.setBeanConverters(new BeanJsonConverter(injector),
new BeanXStreamConverter(new XStream081Configuration(injector)),
new BeanXStreamAtomConverter(new XStream081Configuration(injector)));
res = EasyMock.createMock(HttpServletResponse.class);
NamespaceContext ns = new SimpleNamespaceContext(ImmutableMap.of("", "http://ns.opensocial.org/2008/opensocial"));
XMLUnit.setXpathNamespaceContext(ns);
xp = XMLUnit.newXpathEngine();