train_getContextPath(request, "/context");
train_getBaseSource(baseURLSource, request);
replay();
AssetFactory factory = new ContextAssetFactory(
new AssetPathConstructorImpl(request,
baseURLSource,
"4.5.6",
"",
true,
"/assets/"
),
context,
new IdentityAssetPathConverter()
);
Asset asset = factory.createAsset(r);
assertSame(asset.getResource(), r);
assertEquals(asset.toClientURL(), "/context/assets/4.5.6/ctx/foo/Bar.txt");
// In real life, toString() is the same as toClientURL(), but we're testing