@Test
public void protected_asset_without_an_extension() throws Exception
{
Request request = mockRequest();
Response response = mockResponse();
ClasspathAssetAliasManager aliasManager = mockClasspathAssetAliasManager();
ResourceCache cache = mockResourceCache();
ResourceStreamer streamer = mockResourceStreamer();
String clientURL = "/assets/app1/pages/smiley_png";
String resourcePath = "org/apache/tapestry5/integration/app1/pages/smiley_png";
train_getPath(request, clientURL);
train_toResourcePath(aliasManager, clientURL, resourcePath);
train_requiresDigest(cache, new ClasspathResource(resourcePath), true);
response.sendError(eq(HttpServletResponse.SC_FORBIDDEN), contains(resourcePath));
replay();
Dispatcher d = new AssetDispatcher(streamer, aliasManager, cache, "1.2.3", null);