RequestContext request = createMock(RequestContext.class);
expect(request.getContextPath()).andReturn("/app");
replay(request);
assertEquals(expected, manager.urlFor(request, "entry", context));
}
@Test
public void testStaticResolve() throws Exception {
RouteManager manager = new RouteManager();