CharSequence url = tester.getRequestCycle()
.mapUrlFor(rr, new PageParameters("param=value", ""))
.toString();
assertEquals("wicket/resource/org.apache.wicket.Application/test?param=value", url);
rr = new PackageResourceReference(SharedResourceUrlTest.class, "test");
url = tester.getRequestCycle()
.mapUrlFor(rr, new PageParameters("param=value", ""))
.toString();
assertEquals("wicket/resource/org.apache.wicket.SharedResourceUrlTest/test?param=value",
url);