WebResponse response = newMock(WebResponse.class);
WebContext context = newMock(WebContext.class);
IRequestCycle cycle = newMock(IRequestCycle.class);
ResourceMatcher matcher = newMock(ResourceMatcher.class);
ResourceDigestSource digestSource = newMock(ResourceDigestSource.class);
RequestExceptionReporter exceptionReporter = newMock(RequestExceptionReporter.class);
// digester throws exception for invalid resources
expect(digestSource.getDigestForResource(requestedResource))
.andThrow(new ApplicationRuntimeException("error"))
.anyTimes();
// in which case the exception reporter has to show them
exceptionReporter.reportRequestException((String)EasyMock.anyObject(), (Throwable)EasyMock.anyObject());
EasyMock.expectLastCall().anyTimes();
ClassResolver resolver = new DefaultClassResolver();
AssetService service = new AssetService();