train_optimizePath(optimizer, "/context/foo/Bar.txt", "/opt/path1");
train_optimizePath(optimizer, "/context/foo/Bar.txt", "/opt/path2");
replay();
AssetFactory factory = new ContextAssetFactory(request, context, optimizer);
Asset asset = factory.createAsset(r);
assertSame(asset.getResource(), r);
assertEquals(asset.toClientURL(), "/opt/path1");
// In real life, toString() is the same as toClientURL(), but we're testing