ClasspathAssetFactory factory = new ClasspathAssetFactory();
factory.setClassResolver(getClassResolver());
factory.setAssetService(assetService);
factory.setLocalizer(new DefaultResourceLocalizer());
Resource subResource = new ClasspathResource(getClassResolver(),
"/org/apache/tapestry/asset/subresource/sub-resource.txt");
IAsset asset = factory.createAsset(subResource, l);
assertTrue(asset instanceof PrivateAsset);
assertEquals("/org/apache/tapestry/asset/subresource/sub-resource.txt",