@Before
public void setUp() throws Exception {
featureRegistry = createMock(FeatureRegistry.class);
Map<String, ConfigContributor> configContributors = ImmutableMap.<String,ConfigContributor>of(
"core.util", new CoreUtilConfigContributor(featureRegistry),
"shindig.xhrwrapper", new XhrwrapperConfigContributor()
);
rewriter
= new RenderingGadgetRewriter(messageBundleFactory, config, featureRegistry, jsUriManager, configContributors);
Injector injector = Guice.createInjector(new ParseModule(), new PropertiesModule());