);
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
// that the optimize method is getting called, basically.
assertEquals(asset.toString(), "/context/assets/4.5.6/ctx/foo/Bar.txt");