{
allowing(resolver).resolve(with(any(HttpServletRequest.class)), with(equal("/absolute/path")));
will(returnValue(new SyntheticResource(resolver, "/absolute/path", "test")));
allowing(resolver).resolve(with(any(HttpServletRequest.class)), with(equal("relative/path")));
will(returnValue(new NonExistingResource(resolver, "relative/path")));
allowing(resolver).resolve(with(any(HttpServletRequest.class)), with(any(String.class)));
will(returnValue(new NonExistingResource(resolver, "/absolute/missing")));
allowing(request).getAttribute(with(AuthenticationSupport.REQUEST_ATTRIBUTE_RESOLVER));
will(returnValue(resolver));
allowing(request).getAttribute(with(any(String.class)));