replay();
ClasspathAssetFactory factory = new ClasspathAssetFactory(cache, aliasManager,
converter);
Asset asset = factory.createAsset(r);
assertEquals(asset.toClientURL(), expectedClientURL);
// Now, to check the cache:
assertEquals(asset.toClientURL(), expectedClientURL);
verify();
// Now, to test cache clearing:
train_requiresDigest(cache, r, false);
train_toClientURL(aliasManager, "foo/Bar.txt", expectedClientURL);
replay();
factory.objectWasInvalidated();
assertEquals(asset.toClientURL(), expectedClientURL);
verify();
}