}
@Test
public void if_modified_since_header_not_readable() throws Exception
{
Request request = mockRequest();
Response response = mockResponse();
ClasspathAssetAliasManager aliasManager = mockClasspathAssetAliasManager();
ResourceCache cache = mockResourceCache();
ResourceStreamer streamer = mockResourceStreamer();
long now = System.currentTimeMillis();
train_getPath(request, SMILEY_CLIENT_URL);
train_toResourcePath(aliasManager, SMILEY_CLIENT_URL, SMILEY_PATH);
train_requiresDigest(cache, SMILEY, false);
expect(request.getDateHeader(AssetDispatcher.IF_MODIFIED_SINCE_HEADER)).andThrow(
new IllegalArgumentException("For testing."));
streamer.streamResource(SMILEY);
replay();