ContainerConfig config = new BasicContainerConfig();
config.newTransaction().addContainer(DEFAULT_CONTAINER_CONFIG).addContainer(MOCK_CONTAINER_CONFIG).commit();
ProxyUriManager proxyUriManager = new DefaultProxyUriManager(config, null);
importRewriter = new SanitizingProxyUriManager(proxyUriManager, "text/css");
imageRewriter = new SanitizingProxyUriManager(proxyUriManager, "image/*");
gadgetContext = new GadgetContext() {
@Override
public String getContainer() {
return MOCK_CONTAINER;
}