Map<String, AssetFactory> configuration = Collections.singletonMap("classpath", factory);
replay();
AssetSource source = new AssetSourceImpl(threadLocale, configuration);
assertSame(source.getAsset(
_baseResource,
"classpath:org/apache/tapestry/internal/services/SimpleComponent.properties",
Locale.UK), asset);
// Check that a leading slash is not a problem:
assertSame(source.getAsset(
_baseResource,
"classpath:/org/apache/tapestry/internal/services/SimpleComponent.properties",
Locale.UK), asset);
verify();