};
InternalURLRewriterRule rule2 = new InternalURLRewriterRule();
final Response response = newMock(Response.class);
RequestHandler handler = newMock(RequestHandler.class);
Request request = newMock(Request.class);
expect(request.getServerName()).andReturn("jsf.com");
expect(request.getPath()).andReturn("/why.jsf");
List<URLRewriterRule> rules = new ArrayList<URLRewriterRule>();
rules.add(rule1);
rules.add(rule2);
URLRewriterService service = new URLRewriterServiceImpl(rules);
URLRewriterRequestFilter filter = new URLRewriterRequestFilter(service);
expect(handler.service(rule2.getRequest(), response)).andReturn(false);
replay();
filter.service(request, response, handler);