cssModule = new XHTMLBasicCSSModule(marinerpageContext);
cacheManager = new CacheManagerMock("cacheManagerMock", expectations);
cssCache = new CSSCache(0);
ExternalCSSReference ref = new ExternalCSSReference(
cssModule, cssCache, cfg, contextPathURL, marinerpageContext);
String css = "p { background-color:red;}";
marinerpageContext.expects.getSessionURLRewriter()
.returns(sessionURLRewriter).any();
ref.writePlaceHolderMarkup(new DOMOutputBuffer());
assetResolver.fuzzy.rewriteURLWithPageURLRewriter(mockFactory.expectsAny(),
PageURLType.STYLE_SHEET)
.returns(result).any();
ref.updateMarkup(css);
}